From: Michael Wallner Date: Fri, 4 Dec 2020 10:04:36 +0000 (+0100) Subject: p9y: fix TCP constants X-Git-Tag: 1.1.0-beta1~71 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Flibmemcached;a=commitdiff_plain;h=4f6e4eaafdeb09115d7c8ff15dc897a7b8a05ae6 p9y: fix TCP constants --- diff --git a/CMake/_Include.cmake b/CMake/_Include.cmake index 79533f27..29cdbf25 100644 --- a/CMake/_Include.cmake +++ b/CMake/_Include.cmake @@ -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) diff --git a/src/p9y/socket.hpp b/src/p9y/socket.hpp index ca0b97d3..139ebb56 100644 --- a/src/p9y/socket.hpp +++ b/src/p9y/socket.hpp @@ -8,6 +8,8 @@ # include #endif +#include + #if defined HAVE_ARPA_INET_H # include #endif @@ -20,6 +22,10 @@ # include #endif +#if defined HAVE_NETINET_TCP_H +# include +#endif + #if defined HAVE_SYS_UN_H # include #endif