diff options
author | tarsin <43900799+asuka-mio@users.noreply.github.com> | 2022-03-04 09:28:18 +0800 |
---|---|---|
committer | tarsin <43900799+asuka-mio@users.noreply.github.com> | 2022-03-04 09:28:18 +0800 |
commit | 187b2bbc68714cc5f04b62d5d960e688e1c7769a (patch) | |
tree | 6cff77e76d49ef68a24f947bdd0a02aec133eb20 | |
parent | 9f3c4123a2177cddf437487e089a434c6b09fe25 (diff) | |
download | bullet3-187b2bbc68714cc5f04b62d5d960e688e1c7769a.tar.gz |
fix build with bionic c
-rw-r--r-- | examples/OpenGLWindow/X11OpenGLWindow.cpp | 2 | ||||
-rw-r--r-- | examples/SharedMemory/PosixSharedMemory.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/examples/OpenGLWindow/X11OpenGLWindow.cpp b/examples/OpenGLWindow/X11OpenGLWindow.cpp index f3aa1fe6a..3d7e4de65 100644 --- a/examples/OpenGLWindow/X11OpenGLWindow.cpp +++ b/examples/OpenGLWindow/X11OpenGLWindow.cpp @@ -566,7 +566,7 @@ void X11OpenGLWindow::enableOpenGL() //Access pthreads as a workaround for a bug in Linux/Ubuntu //See https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1248642 -#if !defined(__NetBSD__) +#if !defined(__NetBSD__) && !defined(__ANDROID__) int i = pthread_getconcurrency(); printf("pthread_getconcurrency()=%d\n", i); #endif diff --git a/examples/SharedMemory/PosixSharedMemory.cpp b/examples/SharedMemory/PosixSharedMemory.cpp index 00bcf7584..dac21eeb4 100644 --- a/examples/SharedMemory/PosixSharedMemory.cpp +++ b/examples/SharedMemory/PosixSharedMemory.cpp @@ -8,6 +8,11 @@ #define TEST_SHARED_MEMORY #endif //_WIN32 +//Shmem not available on target api < 26 +#if defined(__ANDROID_API__) && (__ANDROID_API__ < 26) +#undef TEST_SHARED_MEMORY +#endif //__ANDROID__ + #include <stddef.h> #ifdef TEST_SHARED_MEMORY |