aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcicq <fcicq@fcicq.net>2013-07-17 16:51:40 +0800
committerfcicq <fcicq@fcicq.net>2013-07-17 16:51:40 +0800
commit98148a713e6e671f1d993ce4dc7aa4654b4beaff (patch)
tree151b91d6e291ea94ffb9219dc28892ca6e4eeb45
parentb34255b758cdde06b88ba619e6502d6ce6bc3ebb (diff)
Fix fcntl include in net.cpp & netbase.cpp
-rw-r--r--src/net.cpp4
-rw-r--r--src/netbase.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 5418c3de40..0a71e758b0 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -15,6 +15,10 @@
#include <string.h>
#endif
+#ifndef WIN32
+#include <fcntl.h>
+#endif
+
#ifdef USE_UPNP
#include <miniupnpc/miniwget.h>
#include <miniupnpc/miniupnpc.h>
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 08d133740a..348771375c 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -9,7 +9,7 @@
#include "hash.h"
#ifndef WIN32
-#include <sys/fcntl.h>
+#include <fcntl.h>
#endif
#include <boost/algorithm/string/case_conv.hpp> // for to_lower()