p9y: fix TCP constants
authorMichael Wallner <mike@php.net>
Fri, 4 Dec 2020 10:04:36 +0000 (11:04 +0100)
committerMichael Wallner <mike@php.net>
Fri, 4 Dec 2020 10:04:36 +0000 (11:04 +0100)
CMake/_Include.cmake
src/p9y/socket.hpp

index 79533f2766b6d228bac54755619a3c5ddaa74598..29cdbf2566680e6551ade8d2cdf189ae2cc53405 100644 (file)
@@ -122,6 +122,7 @@ check_include(getopt.h)
 check_include(libgen.h)
 check_include(netdb.h)
 check_include(netinet/in.h)
+check_include(netinet/tcp.h)
 check_include(poll.h)
 check_include(strings.h)
 check_include(sys/poll.h)
index ca0b97d3a5f140ec48cf6bc9b71ecfb56489fe50..139ebb5622ee223d76d936cf957c2e3c3d0ac238 100644 (file)
@@ -8,6 +8,8 @@
 # include <errno.h>
 #endif
 
+#include <fcntl.h>
+
 #if defined HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #endif
 # include <netinet/in.h>
 #endif
 
+#if defined HAVE_NETINET_TCP_H
+#  include <netinet/tcp.h>
+#endif
+
 #if defined HAVE_SYS_UN_H
 # include <sys/un.h>
 #endif