mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
committed by
Trevor Norris
parent
7cb38309fe
commit
9cbfd6ef51
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user