Merge pull request #315 from NicolasT/master

Fix build on Fedora 17
This commit is contained in:
Matt Pharr
2012-07-04 08:21:03 -07:00
3 changed files with 6 additions and 0 deletions

View File

@@ -44,6 +44,8 @@
#include <windows.h>
#include <direct.h>
#define strcasecmp stricmp
#else
#include <unistd.h>
#endif
#include <llvm/LLVMContext.h>
#include <llvm/Module.h>

2
lex.ll
View File

@@ -58,6 +58,8 @@ extern void RegisterDependency(const std::string &fileName);
#ifdef ISPC_IS_WINDOWS
inline int isatty(int) { return 0; }
#else
#include <unistd.h>
#endif // ISPC_IS_WINDOWS
static int allTokens[] = {

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>