From 5e9dc153609a849e1818763f9bc4187c90f34a71 Mon Sep 17 00:00:00 2001 From: Timothy Redaelli <timothy.redaelli@gmail.com> Date: Wed, 25 Apr 2012 14:07:24 +0200 Subject: [PATCH] We should include netinet/in.h to use sockaddr_in (POSIX.1-2001) --- src/compat.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compat.h b/src/compat.h index db340445b..804a8141b 100644 --- a/src/compat.h +++ b/src/compat.h @@ -21,10 +21,8 @@ #include <arpa/inet.h> #include <netdb.h> #include <net/if.h> -#include <ifaddrs.h> -#endif -#ifdef BSD #include <netinet/in.h> +#include <ifaddrs.h> #endif typedef u_int SOCKET;