This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: <resolv.h> requires <netinet/in.h>
- From: "Pierre A. Humblet" <pierre at phumblet dot no-ip dot org>
- To: "Yaakov \(Cygwin/X\)" <yselkowitz at users dot sourceforge dot net>, <cygwin-patches at cygwin dot com>
- Date: Mon, 08 Dec 2008 18:03:22 -0500
- Subject: Re: <resolv.h> requires <netinet/in.h>
- References: <493DA370.30006@users.sourceforge.net>
----- 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