From b0cc86a6fc6fc98d18e3bc232f1d83973d74cb3d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 21 Feb 2002 12:39:48 +0000 Subject: Lose the _GNU_SOURCE and just add __USE_GNU to the one file that needs it, since we definately do not want silent remapping of functions to their large-file counterparts. -Erik --- libpthread/linuxthreads/Makefile | 2 +- libpthread/linuxthreads/mutex.c | 2 ++ libpthread/linuxthreads_db/Makefile | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'libpthread') diff --git a/libpthread/linuxthreads/Makefile b/libpthread/linuxthreads/Makefile index eba08a25d..44ec91852 100644 --- a/libpthread/linuxthreads/Makefile +++ b/libpthread/linuxthreads/Makefile @@ -33,7 +33,7 @@ SYSDEPINC = -I$(PTDIR)sysdeps/unix/sysv/linux \ -I$(PTDIR)sysdeps/$(TARGET_ARCH) \ -I$(PTDIR)sysdeps \ -I$(TOPDIR)libc/sysdeps/linux/$(TARGET_ARCH) -CFLAGS += $(SYSDEPINC) -DLIBPTHREAD_SO="\"libpthread.so.$(PT_VERSION)\"" -D_GNU_SOURCE +CFLAGS += $(SYSDEPINC) -DLIBPTHREAD_SO="\"libpthread.so.$(PT_VERSION)\"" CSRC=attr.c cancel.c condvar.c errno.c events.c join.c lockfile.c manager.c \ mutex.c oldsemaphore.c pt-machine.c ptfork.c pthread.c \ diff --git a/libpthread/linuxthreads/mutex.c b/libpthread/linuxthreads/mutex.c index 2217a504e..4c582ea87 100644 --- a/libpthread/linuxthreads/mutex.c +++ b/libpthread/linuxthreads/mutex.c @@ -16,6 +16,8 @@ /* Mutexes */ +#include +#define __USE_GNU #include #include #include diff --git a/libpthread/linuxthreads_db/Makefile b/libpthread/linuxthreads_db/Makefile index eea12c7a4..568369108 100644 --- a/libpthread/linuxthreads_db/Makefile +++ b/libpthread/linuxthreads_db/Makefile @@ -33,7 +33,7 @@ SYSDEPINC = -I$(PTDIR)sysdeps/unix/sysv/linux \ -I$(PTDIR)sysdeps/$(TARGET_ARCH) \ -I$(PTDIR)sysdeps \ -I$(TOPDIR)libc/sysdeps/linux/$(TARGET_ARCH) -CFLAGS += $(SYSDEPINC) -DLIBPTHREAD_SO="\"libpthread.so.$(PT_VERSION)\"" -D_GNU_SOURCE +CFLAGS += $(SYSDEPINC) -DLIBPTHREAD_SO="\"libpthread.so.$(PT_VERSION)\"" CSRC=td_init.c td_log.c td_ta_clear_event.c td_ta_delete.c \ td_ta_enable_stats.c td_ta_event_addr.c td_ta_event_getmsg.c \ -- cgit v1.2.3