Browse Source

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>
v0.10.30-release
Fedor Indutny 11 years ago
committed by Trevor Norris
parent
commit
9cbfd6ef51
  1. 4
      src/node_constants.cc

4
src/node_constants.cc

@ -110,6 +110,10 @@ void DefineConstants(Handle<Object> target) {
NODE_DEFINE_CONSTANT(target, O_DIRECT); NODE_DEFINE_CONSTANT(target, O_DIRECT);
#endif #endif
#ifdef O_NONBLOCK
NODE_DEFINE_CONSTANT(target, O_NONBLOCK);
#endif
#ifdef S_IRWXU #ifdef S_IRWXU
NODE_DEFINE_CONSTANT(target, S_IRWXU); NODE_DEFINE_CONSTANT(target, S_IRWXU);
#endif #endif

Loading…
Cancel
Save