diff --git a/ChangeLog b/ChangeLog index 0c977c467..1c3b4de41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-03-06 Dalibor Topic + + * kaffe/kaffevm/systems/unix-pthreads/Makefile.am (libkthread_la_CFLAGS): + Define _GNU_SOURCE. + + * kaffe/kaffevm/systems/unix-pthreads/signal.c, + kaffe/kaffevm/systems/unix-pthreads/thread-impl.c: Removed + the _GNU_SOURCE define. + 2008-03-01 Dalibor Topic * TODO: Updated. diff --git a/kaffe/kaffevm/systems/unix-pthreads/Makefile.am b/kaffe/kaffevm/systems/unix-pthreads/Makefile.am index 0afbbfb25..9cf6792d2 100644 --- a/kaffe/kaffevm/systems/unix-pthreads/Makefile.am +++ b/kaffe/kaffevm/systems/unix-pthreads/Makefile.am @@ -19,7 +19,8 @@ libkthread_la_LDFLAGS = \ libkthread_la_CFLAGS = \ $(AM_CFLAGS) \ - $(PTHREAD_CFLAGS) + $(PTHREAD_CFLAGS) \ + -D_GNU_SOURCE libkthread_la_SOURCES = \ lock-impl.c \ diff --git a/kaffe/kaffevm/systems/unix-pthreads/Makefile.in b/kaffe/kaffevm/systems/unix-pthreads/Makefile.in index 01982c402..7d345987b 100644 --- a/kaffe/kaffevm/systems/unix-pthreads/Makefile.in +++ b/kaffe/kaffevm/systems/unix-pthreads/Makefile.in @@ -302,7 +302,8 @@ libkthread_la_LDFLAGS = \ libkthread_la_CFLAGS = \ $(AM_CFLAGS) \ - $(PTHREAD_CFLAGS) + $(PTHREAD_CFLAGS) \ + -D_GNU_SOURCE libkthread_la_SOURCES = \ lock-impl.c \ diff --git a/kaffe/kaffevm/systems/unix-pthreads/signal.c b/kaffe/kaffevm/systems/unix-pthreads/signal.c index cfff35411..3852d4f25 100644 --- a/kaffe/kaffevm/systems/unix-pthreads/signal.c +++ b/kaffe/kaffevm/systems/unix-pthreads/signal.c @@ -9,7 +9,6 @@ * of this file. */ -#define _GNU_SOURCE #include "config.h" #include "debug.h" #include "config-std.h" diff --git a/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c b/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c index ac5156cda..ae73d654a 100644 --- a/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c +++ b/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c @@ -47,10 +47,6 @@ #include #endif -/* define _GNU_SOURCE for pthread_yield on linux */ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif #include #if !defined(HAVE_PTHREAD_YIELD) && defined(HAVE_SCHED_YIELD)