diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-06-30 12:43:47 +0400 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-07-02 12:49:59 -0700 |
commit | 9cbfd6ef51899dd869a8ec809766cf06d14c9a36 (patch) | |
tree | e288edff7e5565a716994b405f6313e7eb52016c /src | |
parent | 7cb38309fe96e0ec913af9f13b8ebbe0555ee67a (diff) | |
download | node-9cbfd6ef51899dd869a8ec809766cf06d14c9a36.tar.gz |
constants: add O_NONBLOCK constant
It appears that it is defined unconditionally on all supported unixes.
fix #7867 #7855
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_constants.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc index 2aea278cb..863a7c6ed 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -110,6 +110,10 @@ void DefineConstants(Handle<Object> target) { NODE_DEFINE_CONSTANT(target, O_DIRECT); #endif +#ifdef O_NONBLOCK + NODE_DEFINE_CONSTANT(target, O_NONBLOCK); +#endif + #ifdef S_IRWXU NODE_DEFINE_CONSTANT(target, S_IRWXU); #endif |