<netinet/tcp.h> is in SUSv3 and all targeted Unix systems have it.
For Windows, we can provide a stub include file, to avoid some #ifdef
noise.
Discussion: https://postgr.es/m/CA+hUKGKErNfhmvb_H0UprEmp4LPzGN06yR2_0tYikjzB-2ECMw@mail.gmail.com
fi
-for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h netinet/tcp.h sys/epoll.h sys/event.h sys/personality.h sys/prctl.h sys/procctl.h sys/signalfd.h sys/ucred.h termios.h ucred.h
+for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h sys/epoll.h sys/event.h sys/personality.h sys/prctl.h sys/procctl.h sys/signalfd.h sys/ucred.h termios.h ucred.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
ifaddrs.h
langinfo.h
mbarrier.h
- netinet/tcp.h
sys/epoll.h
sys/event.h
sys/personality.h
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#include <arpa/inet.h>
-#endif
#include "libpq/libpq.h"
#include "miscadmin.h"
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#include <arpa/inet.h>
-#endif
#include "libpq/libpq.h"
#include "miscadmin.h"
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
-#endif
#include <sys/file.h>
#include "libpq/ifaddr.h"
#include <sys/time.h>
#include <netdb.h>
#include <netinet/in.h>
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
-#endif
#include <utime.h>
#ifdef _MSC_VER /* mstcpip.h is missing on mingw */
#include <mstcpip.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
-#endif
#include <arpa/inet.h>
#include <sys/file.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#endif
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
-#endif
#ifdef ENABLE_GSS
#if defined(HAVE_GSSAPI_H)
/* Define to 1 if you have the `mkdtemp' function. */
#undef HAVE_MKDTEMP
-/* Define to 1 if you have the <netinet/tcp.h> header file. */
-#undef HAVE_NETINET_TCP_H
-
/* Define to 1 if you have the `OPENSSL_init_ssl' function. */
#undef HAVE_OPENSSL_INIT_SSL
--- /dev/null
+/* src/include/port/win32/netinet/tcp.h */
+#ifndef WIN32_NETINET_TCP_H
+#define WIN32_NETINET_TCP_H
+
+#include <sys/socket.h>
+
+#endif
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#endif
-#endif
#ifdef ENABLE_THREAD_SAFETY
#ifdef WIN32
#include "win32.h"
#else
#include <unistd.h>
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#endif
-#endif
#include "libpq-fe.h"
#include "libpq-int.h"
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
-#endif
#include <arpa/inet.h>
#endif
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
-#endif
#include <arpa/inet.h>
#endif
HAVE_MEMORY_H => 1,
HAVE_MEMSET_S => undef,
HAVE_MKDTEMP => undef,
- HAVE_NETINET_TCP_H => undef,
HAVE_OPENSSL_INIT_SSL => undef,
HAVE_OSSP_UUID_H => undef,
HAVE_PAM_PAM_APPL_H => undef,