diff options
author | Sebastian Valle <[email protected]> | 2018-09-10 23:19:30 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2018-09-10 23:19:30 -0500 |
commit | 219c625c743c44153ba0926d8b84c69643bee720 (patch) | |
tree | 0fa75b6bbd3d6443a43651cd4c8112418564d4d7 | |
parent | 2e1c6bceeab0bc2b3d18fc7d7253f9b8bf6cb963 (diff) | |
download | enet-219c625c743c44153ba0926d8b84c69643bee720.tar.gz enet-219c625c743c44153ba0926d8b84c69643bee720.zip |
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.
-rw-r--r-- | include/enet/unix.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/enet/unix.h b/include/enet/unix.h index a59e340..b55be33 100644 --- a/include/enet/unix.h +++ b/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> |