From: Julian Seward Date: Sun, 16 Nov 2008 23:25:43 +0000 (+0000) Subject: Make these compile on older systems. X-Git-Tag: svn/VALGRIND_3_4_0~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c003738f138c40244525870defc8f11d1f6599b0;p=thirdparty%2Fvalgrind.git Make these compile on older systems. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8771 --- 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