Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed Mac OS X build

  • Loading branch information
slouken committed Oct 24, 2012
1 parent 367d325 commit dd1e4f4e5b790b3a50ab8d6ebd485e384b07583a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/thread/pthread/SDL_systhread.c
@@ -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

0 comments on commit dd1e4f4

Please sign in to comment.