summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2020-08-27 14:55:50 +0100
committerGitHub <noreply@github.com>2020-08-27 06:55:50 -0700
commitcbff4a0a0664a3f79a553d90f0b4d33904484625 (patch)
tree571cb5e01c6a85c2a1b6169822609eb5ffdcabd3
parentb6a9fd8e301b1cbf09df534473a20f75125cc86a (diff)
downloadbullet3-cbff4a0a0664a3f79a553d90f0b4d33904484625.tar.gz
Fix openglwindows example build on netbsd. (#3008)
not support for pthread_getconcurrency.
-rw-r--r--examples/OpenGLWindow/X11OpenGLWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/OpenGLWindow/X11OpenGLWindow.cpp b/examples/OpenGLWindow/X11OpenGLWindow.cpp
index a6583b203..f3aa1fe6a 100644
--- a/examples/OpenGLWindow/X11OpenGLWindow.cpp
+++ b/examples/OpenGLWindow/X11OpenGLWindow.cpp
@@ -566,8 +566,10 @@ 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__)
int i = pthread_getconcurrency();
printf("pthread_getconcurrency()=%d\n", i);
+#endif
// const GLubyte* ext = glGetString(GL_EXTENSIONS);
// printf("GL_EXTENSIONS=%s\n", ext);