summaryrefslogtreecommitdiffstats
path: root/src/glx/glxclient.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2012-09-18 22:09:26 -0700
committerMatt Turner <[email protected]>2012-10-01 15:23:04 -0700
commit814345f54b74eee2597cf84f3c34817488f07522 (patch)
tree5a425f04b4fed603ac58f7f47a3faeaf79bc487c /src/glx/glxclient.h
parentb6651ae6ad314a93287e431a41f5c7a8f8f6c855 (diff)
build: Use AX_PTHREAD's HAVE_PTHREAD preprocessor definition
Diffstat (limited to 'src/glx/glxclient.h')
-rw-r--r--src/glx/glxclient.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h
index 087f23892e9..e4adedd509b 100644
--- a/src/glx/glxclient.h
+++ b/src/glx/glxclient.h
@@ -53,7 +53,7 @@
#include "GL/glxproto.h"
#include "glxconfig.h"
#include "glxhash.h"
-#if defined( PTHREADS )
+#if defined( HAVE_PTHREAD )
# include <pthread.h>
#endif
@@ -623,7 +623,7 @@ extern void __glXPreferEGL(int state);
extern int __glXDebug;
/* This is per-thread storage in an MT environment */
-#if defined( PTHREADS )
+#if defined( HAVE_PTHREAD )
extern void __glXSetCurrentContext(struct glx_context * c);
@@ -646,7 +646,7 @@ extern struct glx_context *__glXcurrentContext;
#define __glXGetCurrentContext() __glXcurrentContext
#define __glXSetCurrentContext(gc) __glXcurrentContext = gc
-#endif /* defined( PTHREADS ) */
+#endif /* defined( HAVE_PTHREAD ) */
extern void __glXSetCurrentContextNull(void);
@@ -655,7 +655,7 @@ extern void __glXSetCurrentContextNull(void);
** Global lock for all threads in this address space using the GLX
** extension
*/
-#if defined( PTHREADS )
+#if defined( HAVE_PTHREAD )
extern pthread_mutex_t __glXmutex;
#define __glXLock() pthread_mutex_lock(&__glXmutex)
#define __glXUnlock() pthread_mutex_unlock(&__glXmutex)