From 4f6e4eaafdeb09115d7c8ff15dc897a7b8a05ae6 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 4 Dec 2020 11:04:36 +0100 Subject: [PATCH] p9y: fix TCP constants --- CMake/_Include.cmake | 1 + src/p9y/socket.hpp | 6 ++++++ 2 files changed, 7 insertions(+) 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 -- 2.30.2