summaryrefslogtreecommitdiff
path: root/tools/llvm-stub
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/llvm-stub
parent59d41d96e037ed183fa8357f041aee7987236e6c (diff)
downloadllvm-3000cbfd10732332ae5cdadf72c03ff474b9f1e7.tar.gz
llvm-3000cbfd10732332ae5cdadf72c03ff474b9f1e7.tar.bz2
llvm-3000cbfd10732332ae5cdadf72c03ff474b9f1e7.tar.xz
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/llvm-stub')
-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 8d5175af10..10b025633f 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");