]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix valgrind.h include in drd/tests/swapcontext.c
authorMark Wielaard <mark@klomp.org>
Sat, 20 Feb 2021 19:05:31 +0000 (20:05 +0100)
committerMark Wielaard <mark@klomp.org>
Sat, 20 Feb 2021 19:05:42 +0000 (20:05 +0100)
In tree tests should include "valgrind.h" not <valgrind/valgrind.h>
the later might pick up the system installed valgrind.h and doesn't
work when srcdir != builddir.

drd/tests/swapcontext.c

index e73a612dc32aefcf90049a69fb58653001927536..f3944d1ba636d75775959eae88a21cb78897779e 100644 (file)
@@ -11,7 +11,7 @@
 #include <sys/timerfd.h>
 #include <ucontext.h>
 #include <unistd.h>
-#include <valgrind/valgrind.h>
+#include "valgrind.h"
 
 typedef struct thread_local {
   ucontext_t uc[3];