We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47ee9a4 commit 7cb3830Copy full SHA for 7cb3830
1 file changed
src/node_constants.cc
@@ -27,14 +27,11 @@
27
#if !defined(_MSC_VER)
28
#include <unistd.h>
29
#endif
30
+#include <fcntl.h>
31
#include <signal.h>
32
#include <sys/types.h>
33
#include <sys/stat.h>
34
-// O_NONBLOCK is not exported, unless _XOPEN_SOURCE is set
35
-#define _XOPEN_SOURCE 500
36
-#include <fcntl.h>
37
-
38
#if HAVE_OPENSSL
39
# include <openssl/ssl.h>
40
@@ -113,10 +110,6 @@ void DefineConstants(Handle<Object> target) {
113
110
NODE_DEFINE_CONSTANT(target, O_DIRECT);
114
111
115
112
116
-#ifdef O_NONBLOCK
117
- NODE_DEFINE_CONSTANT(target, O_NONBLOCK);
118
-#endif
119
120
#ifdef S_IRWXU
121
NODE_DEFINE_CONSTANT(target, S_IRWXU);
122
0 commit comments