<resolv.h> requires <netinet/in.h>
Pierre A. Humblet
pierre@phumblet.no-ip.org
Mon Dec 8 23:04:00 GMT 2008
----- 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
More information about the Cygwin-patches
mailing list