diff --git a/Sources/Core/ConcurrentDispatch.cpp b/Sources/Core/ConcurrentDispatch.cpp index 8ae28db0..6be66bb5 100644 --- a/Sources/Core/ConcurrentDispatch.cpp +++ b/Sources/Core/ConcurrentDispatch.cpp @@ -38,6 +38,9 @@ #ifndef _MSC_VER #include #endif +#if defined(__GNUC__) +#include +#endif #include "ThreadLocalStorage.h" SPADES_SETTING(core_numDispatchQueueThreads, "auto"); @@ -61,6 +64,8 @@ static int GetNumCores() { if(count < 1) { count = 1; } } return count; +#elif defined(__GNUC__) + return get_nprocs(); #else return sysconf(_SC_NPROCESSORS_ONLN); #endif diff --git a/Sources/Draw/GLLensDustFilter.h b/Sources/Draw/GLLensDustFilter.h index 8eb0409f..3db0aadb 100644 --- a/Sources/Draw/GLLensDustFilter.h +++ b/Sources/Draw/GLLensDustFilter.h @@ -24,6 +24,7 @@ #include "IGLDevice.h" #include #include +#include namespace spades { namespace draw {