Added missing includes: <netinet/in.h> and <sys/socket.h>

Found these missing includes while compiling on FreeBSD 11.
This commit is contained in:
Yuri 2017-02-12 22:28:18 -08:00 committed by iphydf
parent 5ff099763b
commit f751fcfbf6
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
3 changed files with 3 additions and 5 deletions

View File

@ -31,7 +31,6 @@
/* Used for get_broadcast(). */
#ifdef __linux
#include <arpa/inet.h>
#include <linux/netdevice.h>
#include <sys/ioctl.h>
#endif

View File

@ -52,14 +52,11 @@
#if !(defined(_WIN32) || defined(__WIN32__) || defined(WIN32))
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#else

View File

@ -58,8 +58,10 @@
#include <windows.h>
#include <ws2tcpip.h>
#else // Linux includes
#else // UNIX includes
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>