summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita2ff4f46342fc5ba9dc15bd1b397289128e4840c (patch)
tree21ebfacda1b7dd56fb791aa39345cc0b5f8c3af1 /llvm/tools/llvm-stub
parentbeece98d9d3ae805e42f81de81c17ec19b265ef0 (diff)
downloadbcm5719-llvm-a2ff4f46342fc5ba9dc15bd1b397289128e4840c.tar.gz
bcm5719-llvm-a2ff4f46342fc5ba9dc15bd1b397289128e4840c.zip
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. llvm-svn: 19065
Diffstat (limited to 'llvm/tools/llvm-stub')
-rw-r--r--llvm/tools/llvm-stub/llvm-stub.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/tools/llvm-stub/llvm-stub.c b/llvm/tools/llvm-stub/llvm-stub.c
index 8d5175af100..10b025633f8 100644
--- a/llvm/tools/llvm-stub/llvm-stub.c
+++ b/llvm/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");
OpenPOWER on IntegriCloud