We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
authorTimothy Redaelli <timothy.redaelli@gmail.com>
Wed, 25 Apr 2012 12:07:24 +0000 (14:07 +0200)
committerTimothy Redaelli <timothy.redaelli@gmail.com>
Wed, 25 Apr 2012 12:07:24 +0000 (14:07 +0200)
src/compat.h

index db34044..804a814 100644 (file)
 #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;