cURL / Mailing Lists / curl-library / Single Mail

curl-library

Detecting HAVE_NETINET_TCP_H

From: Tor Arntsen <tor_at_spacetec.no>
Date: Fri, 26 Mar 2004 16:44:38 +0100

I'm not sure how to fix this, but the test for netinet/tcp.h in configure
isn't strictly correct. Ref. man 7 tcp, before including <netinet/tcp.h>
one should also include <netinet/in.h> and the test in configure doesn't
do this (it's one single test program including one header at the time).
On some architectures this works ok, but on AIX 4.3, at least, including
<netinet/in.h> before <netinet/tcp.h> is absolutely necessary, or it fails
with lots of undeclared stuff.

-Tor
Received on 2004-03-26