From c003738f138c40244525870defc8f11d1f6599b0 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Sun, 16 Nov 2008 23:25:43 +0000 Subject: [PATCH] Make these compile on older systems. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8771 --- helgrind/tests/bar_bad.c | 2 +- helgrind/tests/bar_trivial.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helgrind/tests/bar_bad.c b/helgrind/tests/bar_bad.c index 0258acf215..dd6079c904 100644 --- a/helgrind/tests/bar_bad.c +++ b/helgrind/tests/bar_bad.c @@ -1,7 +1,7 @@ /* This program checks that Helgrind reports the five degenerate uses of the barrier functions shown. */ - +#define _GNU_SOURCE #include #include #include diff --git a/helgrind/tests/bar_trivial.c b/helgrind/tests/bar_trivial.c index 8d77034713..8c221ae8ee 100644 --- a/helgrind/tests/bar_trivial.c +++ b/helgrind/tests/bar_trivial.c @@ -3,7 +3,7 @@ barriers. If H fails to notice the pthread_barrier_wait call then it will report a race. Correct behaviour is not to report a race (there isn't one.) */ - +#define _GNU_SOURCE #include #include #include -- 2.47.2