fix build with bionic c

This commit is contained in:
tarsin
2022-03-04 09:28:18 +08:00
parent 9f3c4123a2
commit 187b2bbc68
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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