minires-devel-0.97-1: resolv.h fails
Reini Urban
rurban@x-ray.at
Mon Oct 18 13:58:00 GMT 2004
minires maintainer:
so please consider the attached patch for minires-devel
(both versions fail)
Corinna Vinschen schrieb:
> On Oct 18 03:28, Reini Urban wrote:
>
>>minires-devel-0.97-1:
>> #include <resolv.h> fails suddenly.
>>
>>Apparently /usr/include/resolv.h misses the definition for
>>sockaddr_in, which is defined in <cygwin/in.h>
>>
>>Have no clue why it suddenly fails. Anyone else?
>>These headers didn't change for years...
>>
>>Which file is supposed to include cygwin/in.h? I found nothing.
>
>
> netinet/in.h
>
>
>>On other systems it's defined in sys/socket.h, which is included in
>>resolv.h.
>
>
> On Linux as well as on Cygwin:
>
> $ cat > x.c << EOF
> #include <sys/socket.h>
> struct sockaddr_in si;
> EOF
> $ gcc -c x.c
> x.c:2: error: storage size of `si' isn't known
> $ cat > x.c << EOF
> #include <netinet/in.h>
> struct sockaddr_in si;
> EOF
> $ gcc -c x.c
> $
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: minires.patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20041018/0ac51cea/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list