]> Git Repo - uclibc-ng.git/commitdiff
Lose the _GNU_SOURCE and just add __USE_GNU to the one file that needs
authorEric Andersen <[email protected]>
Thu, 21 Feb 2002 12:39:48 +0000 (12:39 -0000)
committerEric Andersen <[email protected]>
Thu, 21 Feb 2002 12:39:48 +0000 (12:39 -0000)
it, since we definately do not want silent remapping of functions to
their large-file counterparts.
 -Erik

libpthread/linuxthreads/Makefile
libpthread/linuxthreads/mutex.c
libpthread/linuxthreads_db/Makefile

index eba08a25d2552c9e870989c73e963481fba72088..44ec91852e0f5d22dc0f16c823deeb447de1d6e9 100644 (file)
@@ -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 \
index 2217a504e47b28ade119f5d285187602db4bd401..4c582ea87b1737a8b0dd17abbd30e74b5fdedc3e 100644 (file)
@@ -16,6 +16,8 @@
 
 /* Mutexes */
 
+#include <features.h>
+#define __USE_GNU
 #include <errno.h>
 #include <sched.h>
 #include <stddef.h>
index eea12c7a4cff824c74ca73d1ae003c847550569d..568369108b789f76c6e51f67dd8b969cd01b75ce 100644 (file)
@@ -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 \
This page took 0.038525 seconds and 4 git commands to generate.