Browse Source

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.
Sebastian Valle 7 years ago
parent
commit
219c625c74
1 changed files with 1 additions and 0 deletions
  1. 1 0
      include/enet/unix.h

+ 1 - 0
include/enet/unix.h

@@ -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>