From cbff4a0a0664a3f79a553d90f0b4d33904484625 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Thu, 27 Aug 2020 14:55:50 +0100 Subject: [PATCH] Fix openglwindows example build on netbsd. (#3008) not support for pthread_getconcurrency. --- examples/OpenGLWindow/X11OpenGLWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);