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@29892 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2010-03-09 23:57:24 +00:00
parent e0815b41ec
commit a7ea17e6b8
2 changed files with 11 additions and 4 deletions

View file

@ -1,10 +1,12 @@
#include "ObjectiveC2/runtime.h"
/* Ensure Unix98 compatible pthreads for glibc */
#if defined __GLIBC__
# define __USE_UNIX98 1
#if defined __linux__ || defined __hurd__
# ifndef _XOPEN_SOURCE
# define _XOPEN_SOURCE 600
# endif
#endif
#include "ObjectiveC2/runtime.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>