use proper _XOPEN_SOURCE instead of __USE_UNIX98 to enable needed thread features on glibc

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29897 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2010-03-10 17:37:00 +00:00
parent 5e196f549a
commit 19e49c3314
4 changed files with 30 additions and 8 deletions

View file

@ -26,7 +26,13 @@
// This file uses some SUS'98 extensions, so we need to tell glibc not to hide
// them. Other platforms have more sensible libcs, which just default to being
// standards-compliant.
#define _XOPEN_SOURCE 500
#if defined __linux__ || defined __hurd__
# ifndef _XOPEN_SOURCE
# define _XOPEN_SOURCE 600
# endif
#endif
#include <pthread.h>
#import "GNUstepBase/GSConfig.h"
#define gs_cond_t pthread_cond_t