diff options
Diffstat (limited to 'tools/llvm-stub/llvm-stub.c')
-rw-r--r-- | tools/llvm-stub/llvm-stub.c | 12 |
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"); |