|
From: <sv...@va...> - 2008-11-16 23:25:49
|
Author: sewardj
Date: 2008-11-16 23:25:43 +0000 (Sun, 16 Nov 2008)
New Revision: 8771
Log:
Make these compile on older systems.
Modified:
trunk/helgrind/tests/bar_bad.c
trunk/helgrind/tests/bar_trivial.c
Modified: trunk/helgrind/tests/bar_bad.c
===================================================================
--- trunk/helgrind/tests/bar_bad.c 2008-11-16 21:59:29 UTC (rev 8770)
+++ trunk/helgrind/tests/bar_bad.c 2008-11-16 23:25:43 UTC (rev 8771)
@@ -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>
Modified: trunk/helgrind/tests/bar_trivial.c
===================================================================
--- trunk/helgrind/tests/bar_trivial.c 2008-11-16 21:59:29 UTC (rev 8770)
+++ trunk/helgrind/tests/bar_trivial.c 2008-11-16 23:25:43 UTC (rev 8771)
@@ -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>
|