This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: <resolv.h> requires <netinet/in.h>


----- Original Message ----- 
From: "Yaakov (Cygwin/X)" 
To: <cygwin-patches>
Sent: Monday, December 08, 2008 5:45 PM
Subject: <resolv.h> requires <netinet/in.h>


| -----BEGIN PGP SIGNED MESSAGE-----
| Hash: SHA256
| 
| This affects both minires-1.02 and Cygwin 1.7.0-34.  STC based on a
| configure test:

**************

This is far from the 1st time that this issue comes up.
resolv.h is completely standard, it comes from a bind distribution.

Every version of man resolver that I have ever seen specifies:

SYNOPSIS 
     #include <sys/types.h>
     #include <netinet/in.h>
     #include <arpa/nameser.h>
     #include <resolv.h>

So it's up to the user to include the right files.
Sure we can make an exception for Cygwin, but the same program can then fail elsewhere.

Pierre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]