From cf250171de5dfddaec95e0f2709824954547bd2d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 30 Jun 2018 13:12:54 +0200 Subject: [PATCH] include: Add arpa/inet.h for htonl This should fix a build warning on FreeBSD. Signed-off-by: Andreas Schneider --- include/libssh/priv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 4af3ad9b..16c62007 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -48,6 +48,10 @@ #include #endif +#ifdef HAVE_ARPA_INET_H +#include +#endif + #ifndef bswap_32 #define bswap_32(x) \ ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \