From 9052d4b10ba6b9c36f021aed04fda2d1ce520fd6 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Sat, 17 Sep 2011 13:42:46 -0700 Subject: [PATCH] Linux build fixes --- examples/tasks_pthreads.cpp | 3 +++ ispc_test.cpp | 3 +++ test_static.cpp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/examples/tasks_pthreads.cpp b/examples/tasks_pthreads.cpp index 6e4e6fcb..90cdccd0 100644 --- a/examples/tasks_pthreads.cpp +++ b/examples/tasks_pthreads.cpp @@ -54,6 +54,9 @@ #include #include #include +#ifdef ISPC_IS_LINUX +#include +#endif static int initialized = 0; static volatile int32_t lock = 0; diff --git a/ispc_test.cpp b/ispc_test.cpp index d6a45ef3..fbca0141 100644 --- a/ispc_test.cpp +++ b/ispc_test.cpp @@ -49,6 +49,9 @@ #include #include #include +#ifdef ISPC_IS_LINUX +#include +#endif #ifdef ISPC_HAVE_SVML #include diff --git a/test_static.cpp b/test_static.cpp index 8945b816..38be15c8 100644 --- a/test_static.cpp +++ b/test_static.cpp @@ -43,6 +43,9 @@ #include #include #include +#ifdef ISPC_IS_LINUX +#include +#endif extern "C" { extern int width();