cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Detecting HAVE_NETINET_TCP_H

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

To follow up my previous posting, something like the following would also
be needed, in addition to a configure fix for HAVE_NETINET_TCP_H:

-Tor

---
Index: lib/connect.c
===================================================================
RCS file: /repository/curl/lib/connect.c,v
retrieving revision 1.90
diff -u -u -r1.90 connect.c
--- lib/connect.c	26 Mar 2004 07:10:15 -0000	1.90
+++ lib/connect.c	26 Mar 2004 15:50:18 -0000
@@ -32,6 +32,9 @@
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h> /* <netinet/tcp.h> may need it */
+#endif
 #ifdef HAVE_NETINET_TCP_H
 #include <netinet/tcp.h> /* for TCP_NODELAY */
 #endif
Received on 2004-03-26