42 lines
1.0 KiB
Diff
42 lines
1.0 KiB
Diff
From 245132eb35e4f9829737e56fe56a1ccbfd42690a Mon Sep 17 00:00:00 2001
|
|
From: Alethea Rose <alethea@alethearose.com>
|
|
Date: Wed, 15 Feb 2017 02:45:09 -0500
|
|
Subject: [PATCH 07/23] Skip sys/resource and unneeded includes in node.cc
|
|
|
|
---
|
|
src/node.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/node.cc b/src/node.cc
|
|
index d17752bb..0008d755 100644
|
|
--- a/src/node.cc
|
|
+++ b/src/node.cc
|
|
@@ -100,7 +100,7 @@
|
|
#include <sanitizer/lsan_interface.h>
|
|
#endif
|
|
|
|
-#if defined(_MSC_VER)
|
|
+#if defined(_WIN32)
|
|
#include <direct.h>
|
|
#include <io.h>
|
|
#define STDIN_FILENO 0
|
|
diff --git a/src/node_process_methods.cc b/src/node_process_methods.cc
|
|
--- a/src/node_process_methods.cc
|
|
+++ b/src/node_process_methods.cc
|
|
@@ -22,11 +22,10 @@
|
|
#include <climits> // PATH_MAX
|
|
#include <cstdio>
|
|
|
|
-#if defined(_MSC_VER)
|
|
+#if defined(_WIN32)
|
|
#include <direct.h>
|
|
#include <io.h>
|
|
#define umask _umask
|
|
-typedef int mode_t;
|
|
#else
|
|
#include <pthread.h>
|
|
#include <sys/resource.h> // getrlimit, setrlimit
|
|
--
|
|
2.17.0.windows.1
|
|
|