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();