From: Julian Seward Date: Mon, 28 Oct 2013 10:57:29 +0000 (+0000) Subject: Fix (old-compiler-specific?) compile problem in X-Git-Tag: svn/VALGRIND_3_9_0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=293f3ee7481d850165bbc4c0b47368cf65e7353d;p=thirdparty%2Fvalgrind.git Fix (old-compiler-specific?) compile problem in memcheck/tests/reach_thread_register.c. (Florian Krohm) git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_9_BRANCH@13704 --- diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am index 6753dcb84f..57b4e8538f 100644 --- a/memcheck/tests/Makefile.am +++ b/memcheck/tests/Makefile.am @@ -319,7 +319,6 @@ check_PROGRAMS = \ partial_load pdb-realloc pdb-realloc2 \ pipe pointer-trace \ post-syscall \ - reach_thread_register \ realloc1 realloc2 realloc3 \ recursive-merge \ sbfragment \ @@ -354,6 +353,10 @@ if HAVE_PTHREAD_SETNAME_NP check_PROGRAMS += threadname endif +if HAVE_PTHREAD_BARRIER +check_PROGRAMS += reach_thread_register +endif + if HAVE_GSTABS check_PROGRAMS += deep_templates endif diff --git a/memcheck/tests/reach_thread_register.c b/memcheck/tests/reach_thread_register.c index 816c1239e9..b70d7e1883 100644 --- a/memcheck/tests/reach_thread_register.c +++ b/memcheck/tests/reach_thread_register.c @@ -1,3 +1,5 @@ +#define _GNU_SOURCE + #include #include #include