mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
5e196f549a
commit
19e49c3314
4 changed files with 30 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue