[llvm-commits] CVS: llvm/tools/llvm-stub/llvm-stub.c
Reid Spencer
reid at x10sys.com
Sun Dec 19 20:34:47 PST 2004
Changes in directory llvm/tools/llvm-stub:
llvm-stub.c updated: 1.4 -> 1.5
---
Log message:
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.
---
Diffs of the changes: (+11 -1)
Index: llvm/tools/llvm-stub/llvm-stub.c
diff -u llvm/tools/llvm-stub/llvm-stub.c:1.4 llvm/tools/llvm-stub/llvm-stub.c:1.5
--- llvm/tools/llvm-stub/llvm-stub.c:1.4 Wed Sep 1 17:55:38 2004
+++ llvm/tools/llvm-stub/llvm-stub.c Sun Dec 19 22:34:36 2004
@@ -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");
More information about the llvm-commits
mailing list