src/thread/pthread/SDL_systhread.c
changeset 5981 75caa8a7d559
parent 5972 8b7f8d297943
child 6000 3c980a9f983c
     1.1 --- a/src/thread/pthread/SDL_systhread.c	Wed Oct 12 20:01:09 2011 -0400
     1.2 +++ b/src/thread/pthread/SDL_systhread.c	Thu Oct 13 01:08:30 2011 -0400
     1.3 @@ -18,6 +18,7 @@
     1.4       misrepresented as being the original software.
     1.5    3. This notice may not be removed or altered from any source distribution.
     1.6  */
     1.7 +
     1.8  #include "SDL_config.h"
     1.9  
    1.10  #include <pthread.h>
    1.11 @@ -31,6 +32,8 @@
    1.12  #include <sys/time.h>
    1.13  #include <sys/resource.h>
    1.14  #include <sys/syscall.h>
    1.15 +#include <unistd.h>
    1.16 +extern int pthread_setname_np (pthread_t __target_thread, __const char *__name) __THROW __nonnull ((2));
    1.17  #endif
    1.18  
    1.19  #include "SDL_platform.h"