diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-20 04:34:36 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-20 04:34:36 +0000 |
commit | a2ff4f46342fc5ba9dc15bd1b397289128e4840c (patch) | |
tree | 21ebfacda1b7dd56fb791aa39345cc0b5f8c3af1 /llvm/tools/llvm-stub | |
parent | beece98d9d3ae805e42f81de81c17ec19b265ef0 (diff) | |
download | bcm5719-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.c | 12 |
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"); |