mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +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@29892 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e0815b41ec
commit
a7ea17e6b8
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-03-10 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* /Source/ObjectiveC2/sync.m : use proper _XOPEN_SOURCE
|
||||
instead of __USE_UNIX98 to enable needed thread features on glibc
|
||||
|
||||
2010-03-08 Roland Schwingel <roland.schwingel@onevision.de>
|
||||
|
||||
* Source/NSFileManager.m: implement fileSystemNumber for mswindows.
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue