Modifies some CMakeLists.txt to add QNX specific checks
using the 'DE_OS_QNX' or 'DE_OS_IS_QNX' compilation flags.
Doesn't change functionality for any other platform.
VK-GL-CTS issue: 537
Components: Framework
Change-Id: I34d4091f2b0f064f22abc4996abb4bed94e4a83f
add_definitions(-DPNG_DEBUG)
endif ()
-if (DE_OS_IS_UNIX)
+if (DE_OS_IS_UNIX OR DE_OS_IS_QNX)
# for snprintf()
add_definitions(-D_XOPEN_SOURCE=600)
endif ()
endif ()
-if (DE_OS_IS_UNIX)
+if (DE_OS_IS_UNIX OR DE_OS_IS_QNX)
add_definitions(-D_XOPEN_SOURCE=600)
endif ()
add_library(debase STATIC ${DEBASE_SRCS})
# link debase to libm on unix systems
-if (DE_OS_IS_UNIX)
+if (DE_OS_IS_UNIX OR DE_OS_IS_QNX)
target_link_libraries(debase m)
add_definitions(-D_XOPEN_SOURCE=600)
dePoolTest.h
)
-if (DE_OS_IS_UNIX)
+if (DE_OS_IS_UNIX OR DE_OS_IS_QNX)
# vsnprintf
add_definitions(-D_XOPEN_SOURCE=600)
endif ()
#include <unistd.h>
#include <pthread.h>
#include <sched.h>
-#include <sys/syscall.h>
+#if (DE_OS == DE_OS_UNIX) || (DE_OS == DE_OS_ANDROID)
+# include <sys/syscall.h>
+#endif
#if (DE_OS == DE_OS_OSX) || (DE_OS == DE_OS_IOS)
# if !defined(_SC_NPROCESSORS_CONF)
set(DEUTIL_LIBS WS2_32)
endif ()
-if (DE_OS_IS_UNIX)
+if (DE_OS_IS_UNIX OR DE_OS_IS_QNX)
add_definitions(-D_XOPEN_SOURCE=600)
endif ()
${PNG_LIBRARY}
)
-if (DE_OS_IS_UNIX)
+if (DE_OS_IS_UNIX OR DE_OS_IS_QNX)
# For vsnprintf()
add_definitions(-D_XOPEN_SOURCE=600)
endif ()