Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
_GNU_SOURCE cleanup
Browse files Browse the repository at this point in the history
2008-03-06  Dalibor Topic  <robilad@kaffe.org>

* 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.
  • Loading branch information
robilad committed Mar 6, 2008
1 parent 666abc5 commit 809f71c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
@@ -1,3 +1,12 @@
2008-03-06 Dalibor Topic <robilad@kaffe.org>

* 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 <robilad@kaffe.org>

* TODO: Updated.
Expand Down
3 changes: 2 additions & 1 deletion kaffe/kaffevm/systems/unix-pthreads/Makefile.am
Expand Up @@ -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 \
Expand Down
3 changes: 2 additions & 1 deletion kaffe/kaffevm/systems/unix-pthreads/Makefile.in
Expand Up @@ -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 \
Expand Down
1 change: 0 additions & 1 deletion kaffe/kaffevm/systems/unix-pthreads/signal.c
Expand Up @@ -9,7 +9,6 @@
* of this file.
*/

#define _GNU_SOURCE
#include "config.h"
#include "debug.h"
#include "config-std.h"
Expand Down
4 changes: 0 additions & 4 deletions kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
Expand Up @@ -47,10 +47,6 @@
#include <gc/gc.h>
#endif

/* define _GNU_SOURCE for pthread_yield on linux */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <pthread.h>

#if !defined(HAVE_PTHREAD_YIELD) && defined(HAVE_SCHED_YIELD)
Expand Down

0 comments on commit 809f71c

Please sign in to comment.