Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed Mac OS X build
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 24, 2012
1 parent 367d325 commit dd1e4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread/pthread/SDL_systhread.c
Expand Up @@ -95,7 +95,7 @@ SDL_SYS_SetupThread(const char *name)
#if ( (__MACOSX__ && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)) || \
(__IPHONEOS__ && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 30200)) )
int (*dynamic_pthread_setname_np)(const char*);
*reinterpret_cast<void**>(&dynamic_pthread_setname_np) = dlsym(RTLD_DEFAULT, "pthread_setname_np");
*(void**)(&dynamic_pthread_setname_np) = dlsym(RTLD_DEFAULT, "pthread_setname_np");
if ( dynamic_pthread_setname_np )
dynamic_pthread_setname_np( name );
#elif HAVE_PTHREAD_SETNAME_NP
Expand Down

0 comments on commit dd1e4f4

Please sign in to comment.