diff --git a/src/node_constants.cc b/src/node_constants.cc index 06397b9280..2aea278cb6 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -106,6 +106,9 @@ void DefineConstants(Handle target) { NODE_DEFINE_CONSTANT(target, O_SYMLINK); #endif +#ifdef O_DIRECT + NODE_DEFINE_CONSTANT(target, O_DIRECT); +#endif #ifdef S_IRWXU NODE_DEFINE_CONSTANT(target, S_IRWXU);