]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added #define _GNU_SOURCE to make sure that this test compiles with older POSIX threa...
authorBart Van Assche <bvanassche@acm.org>
Sun, 29 Jun 2008 07:20:00 +0000 (07:20 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 29 Jun 2008 07:20:00 +0000 (07:20 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8305

exp-drd/tests/pth_barrier_reinit.c

index 416233235c15607cf509dbf4506d9d1e354abd85..fc87b1978af01ebafc086f9c139aef434613cad0 100644 (file)
@@ -1,5 +1,13 @@
+/** Trigger barrier reinitialization, which is not allowed by the POSIX
+ *  threads standard. See also http://www.opengroup.org/onlinepubs/000095399/functions/pthread_barrier_init.html.
+ */
+
+
+#define _GNU_SOURCE
+
 #include <pthread.h>
 
+
 int main(int argc, char** argv)
 {
   pthread_barrier_t b;