We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4128d4d commit 47ee9a4Copy full SHA for 47ee9a4
1 file changed
src/node_constants.cc
@@ -19,28 +19,22 @@
19
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20
// USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22
-// O_NONBLOCK is not exported unless _XOPEN_SOURCE >= 500.
23
-#if defined(_XOPEN_SOURCE) && _XOPEN_SOURCE < 500
24
-#undef _XOPEN_SOURCE
25
-#endif
26
-
27
-#if !defined(_XOPEN_SOURCE)
28
-#define _XOPEN_SOURCE 500
29
30
31
#include "node_constants.h"
32
33
#include "uv.h"
34
35
#include <errno.h>
36
-#include <fcntl.h>
37
#if !defined(_MSC_VER)
38
#include <unistd.h>
39
#endif
40
#include <signal.h>
41
#include <sys/types.h>
42
#include <sys/stat.h>
43
+// O_NONBLOCK is not exported, unless _XOPEN_SOURCE is set
+#define _XOPEN_SOURCE 500
+#include <fcntl.h>
+
44
#if HAVE_OPENSSL
45
# include <openssl/ssl.h>
46
0 commit comments