From 69c9cd029f487b682d82b82aa4e6833017387fcd Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 10 Apr 2015 13:02:26 +0200 Subject: [PATCH] cmake: Check for arpa/inet.h header file Signed-off-by: Andreas Schneider --- ConfigureChecks.cmake | 1 + src/packet_cb.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 650ff4ed..902b4a31 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -54,6 +54,7 @@ check_include_file(unistd.h HAVE_UNISTD_H) check_include_file(util.h HAVE_UTIL_H) check_include_file(libutil.h HAVE_LIBUTIL_H) check_include_file(sys/time.h HAVE_SYS_TIME_H) +check_include_file(arpa/inet.h HAVE_ARPA_INET_H) if (WIN32) check_include_files("winsock2.h;ws2tcpip.h;wspiapi.h" HAVE_WSPIAPI_H) diff --git a/src/packet_cb.c b/src/packet_cb.c index 5b759a3e..17e39a4c 100644 --- a/src/packet_cb.c +++ b/src/packet_cb.c @@ -24,7 +24,9 @@ #include "config.h" #include +#ifdef HAVE_ARPA_INET_H #include +#endif #include "libssh/priv.h" #include "libssh/buffer.h"