diff options
author | Matt Turner <[email protected]> | 2012-09-18 22:09:26 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2012-10-01 15:23:04 -0700 |
commit | 814345f54b74eee2597cf84f3c34817488f07522 (patch) | |
tree | 5a425f04b4fed603ac58f7f47a3faeaf79bc487c /src/mapi/glapi/glapi_entrypoint.c | |
parent | b6651ae6ad314a93287e431a41f5c7a8f8f6c855 (diff) |
build: Use AX_PTHREAD's HAVE_PTHREAD preprocessor definition
Diffstat (limited to 'src/mapi/glapi/glapi_entrypoint.c')
-rw-r--r-- | src/mapi/glapi/glapi_entrypoint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mapi/glapi/glapi_entrypoint.c b/src/mapi/glapi/glapi_entrypoint.c index 993ccb94c24..7a0eb353775 100644 --- a/src/mapi/glapi/glapi_entrypoint.c +++ b/src/mapi/glapi/glapi_entrypoint.c @@ -136,7 +136,7 @@ extern void __glapi_sparc_icache_flush(unsigned int *); static void init_glapi_relocs( void ) { -#if defined(PTHREADS) || defined(GLX_USE_TLS) +#if defined(HAVE_PTHREAD) || defined(GLX_USE_TLS) static const unsigned int template[] = { #ifdef GLX_USE_TLS 0x05000000, /* sethi %hi(_glapi_tls_Dispatch), %g2 */ @@ -266,7 +266,7 @@ init_glapi_relocs( void ) _glapi_proc generate_entrypoint(GLuint functionOffset) { -#if defined(PTHREADS) || defined(GLX_USE_TLS) +#if defined(HAVE_PTHREAD) || defined(GLX_USE_TLS) static const unsigned int template[] = { 0x07000000, /* sethi %hi(0), %g3 */ 0x8210000f, /* mov %o7, %g1 */ @@ -337,7 +337,7 @@ fill_in_entrypoint_offset(_glapi_proc entrypoint, GLuint offset) void init_glapi_relocs_once( void ) { -#if defined(PTHREADS) || defined(GLX_USE_TLS) +#if defined(HAVE_PTHREAD) || defined(GLX_USE_TLS) static pthread_once_t once_control = PTHREAD_ONCE_INIT; pthread_once( & once_control, init_glapi_relocs ); #endif |