aboutsummaryrefslogtreecommitdiff
path: root/include/Config/sys/resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Config/sys/resource.h')
-rw-r--r--include/Config/sys/resource.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/Config/sys/resource.h b/include/Config/sys/resource.h
index 0b51941424..1f4cc694b2 100644
--- a/include/Config/sys/resource.h
+++ b/include/Config/sys/resource.h
@@ -18,22 +18,16 @@
#include "Config/config.h"
-#ifdef HAVE_SYS_RESOURCE_H
+#if defined(HAVE_SYS_RESOURCE_H) && !defined(_MSC_VER)
/*
* In LLVM, we use sys/resource.h to use getrusage() and maybe some other
* stuff. Some man pages say that you also need sys/time.h and unistd.h.
* So, to be paranoid, we will try to include all three if possible.
*/
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-
+#include "Config/sys/time.h"
#include <sys/resource.h>
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
+#include "Config/unistd.h"
#endif