mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added missing includes: <netinet/in.h> and <sys/socket.h>
Found these missing includes while compiling on FreeBSD 11.
This commit is contained in:
parent
5ff099763b
commit
f751fcfbf6
|
@ -31,7 +31,6 @@
|
|||
|
||||
/* Used for get_broadcast(). */
|
||||
#ifdef __linux
|
||||
#include <arpa/inet.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user