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:
rmottola 2010-03-10 17:37:00 +00:00
parent 5af99e8da5
commit 06faa7d8da
4 changed files with 30 additions and 8 deletions

View file

@ -86,6 +86,16 @@
#define IN_NSZONE_M 1
/* we define _XOPEN_SOURCE to get all the necessary pthread attributes
* and we need to define it here and not just in GSPThread.h because
* GLIBC is so picky with defines */
#if defined __linux__ || defined __hurd__
# ifndef _XOPEN_SOURCE
# define _XOPEN_SOURCE 600
# endif
#endif
#import "common.h"
#include <stddef.h>
#include <string.h>