Skip to content

Commit

Permalink
Fixed bug 3011 - pthread/SDL_syssem.c requires _GNU_SOURCE
Browse files Browse the repository at this point in the history
Ozkan Sezer

pthread/SDL_syssem.c requires _GNU_SOURCE predefined (like SDL_sysmutex.c),
otherwise sem_timedwait() prototype might not be available to it.  Problem
seen with glibc-2.3.4.
  • Loading branch information
slouken committed Jun 13, 2015
1 parent 9cf47d2 commit 98f9b88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread/pthread/SDL_sysmutex.c
Expand Up @@ -23,8 +23,8 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <pthread.h>
#include <errno.h>
#include <pthread.h>

#include "SDL_thread.h"

Expand Down
3 changes: 3 additions & 0 deletions src/thread/pthread/SDL_syssem.c
Expand Up @@ -20,6 +20,9 @@
*/
#include "../../SDL_internal.h"

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <errno.h>
#include <pthread.h>
#include <semaphore.h>
Expand Down

0 comments on commit 98f9b88

Please sign in to comment.