aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-20 04:34:36 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-20 04:34:36 +0000
commit3000cbfd10732332ae5cdadf72c03ff474b9f1e7 (patch)
treeb6ce088224538f61e0412182fcbd7c95b09d1158 /tools
parent59d41d96e037ed183fa8357f041aee7987236e6c (diff)
downloadexternal_llvm-3000cbfd10732332ae5cdadf72c03ff474b9f1e7.zip
external_llvm-3000cbfd10732332ae5cdadf72c03ff474b9f1e7.tar.gz
external_llvm-3000cbfd10732332ae5cdadf72c03ff474b9f1e7.tar.bz2
Incorporate the contents of include/llvm/Config/unistd.h as this is the
last file in LLVM to require the header. After ths commmit, our unistd.h will go away. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-stub/llvm-stub.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/llvm-stub/llvm-stub.c b/tools/llvm-stub/llvm-stub.c
index 8d5175a..10b0256 100644
--- a/tools/llvm-stub/llvm-stub.c
+++ b/tools/llvm-stub/llvm-stub.c
@@ -23,7 +23,17 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "llvm/Config/unistd.h" /* provides definition of execve */
+
+#include "llvm/Config/config.h"
+
+#if defined(HAVE_UNISTD_H) && !defined(_MSC_VER)
+#include <unistd.h>
+#endif
+
+#ifdef _WIN32
+#include <process.h>
+#include <io.h>
+#endif
int main(int argc, char** argv) {
const char *Interp = getenv("LLVMINTERP");