]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make these compile on older systems.
authorJulian Seward <jseward@acm.org>
Sun, 16 Nov 2008 23:25:43 +0000 (23:25 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 16 Nov 2008 23:25:43 +0000 (23:25 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8771

helgrind/tests/bar_bad.c
helgrind/tests/bar_trivial.c

index 0258acf2154204b86869126a8132890c217494c2..dd6079c90478f9c47ef98583ed6bd8090c775d1d 100644 (file)
@@ -1,7 +1,7 @@
 
 /* This program checks that Helgrind reports the five degenerate
    uses of the barrier functions shown. */
-
+#define _GNU_SOURCE
 #include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>
index 8d77034713ea4e760a694b98f664b978d7bdb18a..8c221ae8ee6bd0919e41cce82ea7884389b734bb 100644 (file)
@@ -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 <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>