summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-27 21:33:06 +0100
committermadmaxoft <github@xoft.cz>2014-01-27 21:33:06 +0100
commit4169af1ce1a022d364edfa3313aa5a21d594f198 (patch)
tree6aa54793240fe1daa58dbe09ace91927de54d171
parentRewritten networking to use non-blocking sockets. (diff)
downloadcuberite-4169af1ce1a022d364edfa3313aa5a21d594f198.tar
cuberite-4169af1ce1a022d364edfa3313aa5a21d594f198.tar.gz
cuberite-4169af1ce1a022d364edfa3313aa5a21d594f198.tar.bz2
cuberite-4169af1ce1a022d364edfa3313aa5a21d594f198.tar.lz
cuberite-4169af1ce1a022d364edfa3313aa5a21d594f198.tar.xz
cuberite-4169af1ce1a022d364edfa3313aa5a21d594f198.tar.zst
cuberite-4169af1ce1a022d364edfa3313aa5a21d594f198.zip
-rw-r--r--src/OSSupport/Socket.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/OSSupport/Socket.cpp b/src/OSSupport/Socket.cpp
index 3248eed88..064abbab5 100644
--- a/src/OSSupport/Socket.cpp
+++ b/src/OSSupport/Socket.cpp
@@ -6,7 +6,8 @@
#ifndef _WIN32
#include <netdb.h>
#include <unistd.h>
- #include <arpa/inet.h> //inet_ntoa()
+ #include <arpa/inet.h> // inet_ntoa()
+ #include <sys/ioctl.h> // ioctl()
#else
#define socklen_t int
#endif