Fixed pthread_np.h detection on OpenBSD.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 20 Jul 2012 13:32:34 -0400
changeset 6374 d4ed97e63c22
parent 6373 494e0436525f
child 6375 93f9a24d1c02
Fixed pthread_np.h detection on OpenBSD.
configure.in
--- a/configure.in	Thu Jul 19 09:36:58 2012 -0700
+++ b/configure.in	Fri Jul 20 13:32:34 2012 -0400
@@ -1826,7 +1826,7 @@
             ])
             AC_MSG_RESULT($has_pthread_spin_trylock)
 
-            AC_CHECK_HEADER(pthread_np.h, have_pthread_np_h=yes)
+            AC_CHECK_HEADER(pthread_np.h, have_pthread_np_h=yes, have_pthread_np_h=no, [ #include <pthread.h> ])
             if test x$have_pthread_np_h = xyes; then
                 AC_DEFINE(HAVE_PTHREAD_NP_H, 1, [ ])
             fi