From 219c625c743c44153ba0926d8b84c69643bee720 Mon Sep 17 00:00:00 2001 From: Sebastian Valle Date: Mon, 10 Sep 2018 23:19:30 -0500 Subject: [PATCH 1/2] Add the include to unix.h. Some files were using ENET_HOST_TO_NET_32 and ENET_NET_TO_HOST_32 without having included the file beforehand, leading to compiler warnings about implicit declarations of ntohl and htonl. --- include/enet/unix.h | 1 + 1 file changed, 1 insertion(+) 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 #include #include +#include #include #include From cea2c5be9faa13a451d3c767601db95f7e0bff15 Mon Sep 17 00:00:00 2001 From: Sebastian Valle Date: Mon, 10 Sep 2018 23:21:55 -0500 Subject: [PATCH 2/2] Remove the now unneeded include in unix.c This is already included in unix.h --- unix.c | 1 - 1 file changed, 1 deletion(-) diff --git a/unix.c b/unix.c index c36a082..91dad72 100644 --- a/unix.c +++ b/unix.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include