From 3000cbfd10732332ae5cdadf72c03ff474b9f1e7 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 20 Dec 2004 04:34:36 +0000 Subject: [PATCH] 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 --- tools/llvm-stub/llvm-stub.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/llvm-stub/llvm-stub.c b/tools/llvm-stub/llvm-stub.c index 8d5175af100..10b025633f8 100644 --- a/tools/llvm-stub/llvm-stub.c +++ b/tools/llvm-stub/llvm-stub.c @@ -23,7 +23,17 @@ #include #include #include -#include "llvm/Config/unistd.h" /* provides definition of execve */ + +#include "llvm/Config/config.h" + +#if defined(HAVE_UNISTD_H) && !defined(_MSC_VER) +#include +#endif + +#ifdef _WIN32 +#include +#include +#endif int main(int argc, char** argv) { const char *Interp = getenv("LLVMINTERP");