Commit ec7b22b4 authored by Alexis Ballier's avatar Alexis Ballier Committed by Youness Alaoui

Fix build on FreeBSD.

POSIX (http://www.opengroup.org/onlinepubs/009695399/basedefs/netinet/in.h.html) specifies that sockaddr_in is defined in netinet/in.h. Include the header where this struct is used.
parent ad22c1e5
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h>
#ifdef HAVE_GETIFADDRS #ifdef HAVE_GETIFADDRS
#include <ifaddrs.h> #include <ifaddrs.h>
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#else #else
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h>
#endif #endif
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h>
#endif #endif
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h>
#endif #endif
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
#else #else
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h>
#endif #endif
# ifdef __cplusplus # ifdef __cplusplus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment