mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
Add the <arpa/inet.h> include to unix.h.
Some files were using ENET_HOST_TO_NET_32 and ENET_NET_TO_HOST_32 without having included the <arpa/inet.h> file beforehand, leading to compiler warnings about implicit declarations of ntohl and htonl.
This commit is contained in:
parent
2e1c6bceea
commit
219c625c74
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue