Index: memcheck/tests/reach_thread_register.c =================================================================== --- memcheck/tests/reach_thread_register.c (revision 13700) +++ memcheck/tests/reach_thread_register.c (working copy) @@ -1,3 +1,5 @@ +#define _GNU_SOURCE + #include #include #include Index: memcheck/tests/Makefile.am =================================================================== --- memcheck/tests/Makefile.am (revision 13700) +++ memcheck/tests/Makefile.am (working copy) @@ -319,7 +319,6 @@ partial_load pdb-realloc pdb-realloc2 \ pipe pointer-trace \ post-syscall \ - reach_thread_register \ realloc1 realloc2 realloc3 \ recursive-merge \ sbfragment \ @@ -354,6 +353,10 @@ check_PROGRAMS += threadname endif +if HAVE_PTHREAD_BARRIER +check_PROGRAMS += reach_thread_register +endif + if HAVE_GSTABS check_PROGRAMS += deep_templates endif