aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2018-09-11 00:25:10 -0400
committerGitHub <[email protected]>2018-09-11 00:25:10 -0400
commite2ef83927d1626d6ee479742343a3011333fdfdd (patch)
tree6ab7ed0b6ee3198fbbbb3155ea1c5c290e080c7a
parent295456fba9bc6cfde7a9bbe9029efb09e6c1bb47 (diff)
parentcea2c5be9faa13a451d3c767601db95f7e0bff15 (diff)
downloadenet-e2ef83927d1626d6ee479742343a3011333fdfdd.tar.gz
enet-e2ef83927d1626d6ee479742343a3011333fdfdd.zip
Merge pull request #96 from Subv/patch-2
Add the <arpa/inet.h> include to unix.h
-rw-r--r--include/enet/unix.h1
-rw-r--r--unix.c1
2 files changed, 1 insertions, 1 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>
diff --git a/unix.c b/unix.c
index 4fa6287..a636f03 100644
--- a/unix.c
+++ b/unix.c
@@ -8,7 +8,6 @@
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/time.h>
-#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <unistd.h>