From b81a5fcc0b36b23cab9d19a71116cddf0c3aaa0f Mon Sep 17 00:00:00 2001 From: rmottola Date: Thu, 25 Mar 2010 22:53:21 +0000 Subject: [PATCH] change defines for GNU/HURD git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30039 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 8 ++++++++ Source/GSPThread.h | 2 +- Source/NSLock.m | 4 ++-- Source/NSZone.m | 2 +- Source/ObjectiveC2/sync.m | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3761c83ac..b2eee1baa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-03-25 Riccardo Mottola + + * Source/GSPThread.h + * Source/NSZone.m + * Source/ObjectiveC2/sync.m + * Source/NSLock.m: + change defines for GNU/HURD + 2010-03-23 Riccardo Mottola * Source/NSObject.m: Atomic increment and decrement functions for mips diff --git a/Source/GSPThread.h b/Source/GSPThread.h index a8b44c2cb..f4cbe8b5c 100644 --- a/Source/GSPThread.h +++ b/Source/GSPThread.h @@ -30,7 +30,7 @@ * For safety we enable this only on linux and hurd where glibc is likely. * We include features.h explicitely to avoid weird problems. */ -#if defined __linux__ || defined __hurd__ +#if defined __linux__ || defined __GNU__ # ifndef _XOPEN_SOURCE # define _XOPEN_SOURCE 600 # endif diff --git a/Source/NSLock.m b/Source/NSLock.m index fc7222fe6..5ecc34887 100644 --- a/Source/NSLock.m +++ b/Source/NSLock.m @@ -1,5 +1,5 @@ /** Control of executable units within a shared virtual memory space - Copyright (C) 1996-2000 Free Software Foundation, Inc. + Copyright (C) 1996-2010 Free Software Foundation, Inc. Original Author: David Chisnall @@ -26,7 +26,7 @@ // 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. -#if defined __linux__ || defined __hurd__ +#if defined __linux__ || defined __GNU__ # ifndef _XOPEN_SOURCE # define _XOPEN_SOURCE 600 # endif diff --git a/Source/NSZone.m b/Source/NSZone.m index 5621487b7..be4b99982 100644 --- a/Source/NSZone.m +++ b/Source/NSZone.m @@ -89,7 +89,7 @@ /* 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__ +#if defined __linux__ || defined __GNU__ # ifndef _XOPEN_SOURCE # define _XOPEN_SOURCE 600 # endif diff --git a/Source/ObjectiveC2/sync.m b/Source/ObjectiveC2/sync.m index a611829a6..6ecf27534 100644 --- a/Source/ObjectiveC2/sync.m +++ b/Source/ObjectiveC2/sync.m @@ -1,5 +1,5 @@ /* Ensure Unix98 compatible pthreads for glibc */ -#if defined __linux__ || defined __hurd__ +#if defined __linux__ || defined __GNU__ # ifndef _XOPEN_SOURCE # define _XOPEN_SOURCE 600 # endif