Skip to content

Commit 7cb3830

Browse files
indutnytrevnorris
authored andcommitted
Revert "constants: export O_NONBLOCK"
This reverts commit 00890e4. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
1 parent 47ee9a4 commit 7cb3830

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/node_constants.cc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@
2727
#if !defined(_MSC_VER)
2828
#include <unistd.h>
2929
#endif
30+
#include <fcntl.h>
3031
#include <signal.h>
3132
#include <sys/types.h>
3233
#include <sys/stat.h>
3334

34-
// O_NONBLOCK is not exported, unless _XOPEN_SOURCE is set
35-
#define _XOPEN_SOURCE 500
36-
#include <fcntl.h>
37-
3835
#if HAVE_OPENSSL
3936
# include <openssl/ssl.h>
4037
#endif
@@ -113,10 +110,6 @@ void DefineConstants(Handle<Object> target) {
113110
NODE_DEFINE_CONSTANT(target, O_DIRECT);
114111
#endif
115112

116-
#ifdef O_NONBLOCK
117-
NODE_DEFINE_CONSTANT(target, O_NONBLOCK);
118-
#endif
119-
120113
#ifdef S_IRWXU
121114
NODE_DEFINE_CONSTANT(target, S_IRWXU);
122115
#endif

0 commit comments

Comments
 (0)