gethostname prototypes [was: Re: wine's winhelp doesn't compile]
James Juran
jamesjuran at alumni.psu.edu
Sun Dec 2 09:45:44 CST 2001
[taken to wine-devel, thread originally started in newsgroup]
gerard patel wrote:
>
> >james[1]%rpm -qf /usr/include/unistd.h
> >glibc-devel-2.2.4-19
>
> glibc-devel-2.2.2-4mdk
>
> >james[2]%grep gethostname /usr/include/unistd.h
> >extern int gethostname (char *__name, size_t __len) __THROW;
>
> extern int gethostname (char *__name, socklen_t __len) __THROW;
>
> ./include/bits/types.h:typedef unsigned int __socklen_t;
This could be a problem. According to the glibc CVS,
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/include/unistd.h.diff?r1=1.18&r2=1.19&cvsroot=glibc&f=h,
the type of the 2nd argument changed from int to size_t on 2001/3/21.
According to the CVS tags, this change was first released in
glibc-2.2.3.
We were able to work around this problem in programs/winhelp by not
including winsock.h, but could this problem crop up anyplace else? It
seems that it is currently impossible to include unistd.h and winsock.h
on a machine with glibc >= 2.2.3.
--
James Juran
jamesjuran at alumni.psu.edu
More information about the wine-devel
mailing list