45 lines
1.1 KiB
Diff
45 lines
1.1 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 +-
|
|
src/node_process_methods.cc | 3 +--
|
|
2 files changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/node.cc b/src/node.cc
|
|
index b56e57c2..4c070d90 100644
|
|
--- a/src/node.cc
|
|
+++ b/src/node.cc
|
|
@@ -108,7 +108,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
|
|
index 51bfc633..efa6c156 100644
|
|
--- a/src/node_process_methods.cc
|
|
+++ b/src/node_process_methods.cc
|
|
@@ -24,12 +24,11 @@
|
|
#include <climits> // PATH_MAX
|
|
#include <cstdio>
|
|
|
|
-#if defined(_MSC_VER)
|
|
+#if defined(_WIN32)
|
|
#include <direct.h>
|
|
#include <io.h>
|
|
#include <process.h>
|
|
#define umask _umask
|
|
-typedef int mode_t;
|
|
#else
|
|
#include <pthread.h>
|
|
#include <sys/resource.h> // getrlimit, setrlimit
|
|
--
|
|
2.17.0.windows.1
|
|
|