summaryrefslogtreecommitdiffstats
path: root/drivers/unix/tcp_server_posix.cpp
diff options
context:
space:
mode:
authorKostadin Damyanov <maxmight@gmail.com>2015-05-25 03:49:24 +0300
committerKostadin Damyanov <maxmight@gmail.com>2015-05-25 03:49:24 +0300
commit4e07a2dea8c94337702d35d0d02d4b7234f86e29 (patch)
treea12a04e950dc1846a7e804b1e1a8bfa9b9c8e37a /drivers/unix/tcp_server_posix.cpp
parent4a56f72f5be6cd34c96a082e3697f4eecd744e75 (diff)
downloadredot-engine-4e07a2dea8c94337702d35d0d02d4b7234f86e29.tar.gz
Haiku: fix building with UNIX_ENABLED.
Diffstat (limited to 'drivers/unix/tcp_server_posix.cpp')
-rw-r--r--drivers/unix/tcp_server_posix.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/unix/tcp_server_posix.cpp b/drivers/unix/tcp_server_posix.cpp
index 4f9ee62cde..aaca0fe0d8 100644
--- a/drivers/unix/tcp_server_posix.cpp
+++ b/drivers/unix/tcp_server_posix.cpp
@@ -41,7 +41,11 @@
#include <netdb.h>
#include <sys/types.h>
#ifndef NO_FCNTL
-#include <sys/fcntl.h>
+ #ifdef __HAIKU__
+ #include <fcntl.h>
+ #else
+ #include <sys/fcntl.h>
+ #endif
#else
#include <sys/ioctl.h>
#endif