Build: Include unistd.h where required

Some modules require an include of unistd.h (e.g. for getcwd and isatty
definitions).

These changes were required to build successfully on a Fedora 17 system,
using GCC 4.7.0 & glibc-headers 2.15.
This commit is contained in:
Nicolas Trangez
2012-07-04 14:49:00 +02:00
parent b8503b9255
commit 3a007f939a
3 changed files with 6 additions and 0 deletions

View File

@@ -43,6 +43,8 @@
#include <stdlib.h>
#ifdef ISPC_IS_WINDOWS
#include <time.h>
#else
#include <unistd.h>
#endif // ISPC_IS_WINDOWS
#include <llvm/Support/Signals.h>
#include <llvm/Support/TargetRegistry.h>