mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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,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…
Add table
Add a link
Reference in a new issue