aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl
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/egl
parentb6651ae6ad314a93287e431a41f5c7a8f8f6c855 (diff)
build: Use AX_PTHREAD's HAVE_PTHREAD preprocessor definition
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/eglcurrent.c6
-rw-r--r--src/egl/main/eglmutex.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/egl/main/eglcurrent.c b/src/egl/main/eglcurrent.c
index 2e2185fa510..5b09a480772 100644
--- a/src/egl/main/eglcurrent.c
+++ b/src/egl/main/eglcurrent.c
@@ -42,7 +42,7 @@
static _EGLThreadInfo dummy_thread = _EGL_THREAD_INFO_INITIALIZER;
-#if PTHREADS
+#if HAVE_PTHREAD
#include <pthread.h>
static _EGL_DECLARE_MUTEX(_egl_TSDMutex);
@@ -108,7 +108,7 @@ static INLINE EGLBoolean _eglInitTSD(void (*dtor)(_EGLThreadInfo *))
return EGL_TRUE;
}
-#else /* PTHREADS */
+#else /* HAVE_PTHREAD */
static const _EGLThreadInfo *_egl_TSD;
static void (*_egl_FreeTSD)(_EGLThreadInfo *);
@@ -137,7 +137,7 @@ static INLINE EGLBoolean _eglInitTSD(void (*dtor)(_EGLThreadInfo *))
return EGL_TRUE;
}
-#endif /* !PTHREADS */
+#endif /* !HAVE_PTHREAD */
static void
diff --git a/src/egl/main/eglmutex.h b/src/egl/main/eglmutex.h
index 852e25195c4..e46486463b1 100644
--- a/src/egl/main/eglmutex.h
+++ b/src/egl/main/eglmutex.h
@@ -31,7 +31,7 @@
#include "eglcompiler.h"
-#ifdef PTHREADS
+#ifdef HAVE_PTHREAD
#include <pthread.h>
typedef pthread_mutex_t _EGLMutex;