Skip to content

Commit

Permalink
make _GNU_SOURCE definitions consistent with luajit, include before f…
Browse files Browse the repository at this point in the history
…eatures.h

Signed-off-by: Justin Cormack <[email protected]>
  • Loading branch information
justincormack committed Dec 25, 2015
1 parent adb39ad commit 5f75b96
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions gcc-preinclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// See: http://www.win.tue.nl/~aeb/linux/misc/gcc-semibug.html
// https://rjpower9000.wordpress.com/2012/04/09/fun-with-shared-libraries-version-glibc_2-14-not-found/

#define _GNU_SOURCE 1

#include <features.h>

#ifndef __ASSEMBLER__
Expand Down
2 changes: 1 addition & 1 deletion src/core/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// virtual addresses (remove the tag bits) and to test addresses for
// validity (check the tag bits).

#define _GNU_SOURCE
#define _GNU_SOURCE 1

#include <assert.h>
#include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/traceprof/traceprof.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Location where the next instruction pointer value will be stored.

#define _GNU_SOURCE
#define _GNU_SOURCE 1

#include <assert.h>
#include <stdio.h>
Expand Down

0 comments on commit 5f75b96

Please sign in to comment.