valgrind: avoid including linux/ptrace.h to fix a musl build error
authorFelix Fietkau <nbd@openwrt.org>
Sun, 8 Jun 2014 11:21:37 +0000 (11:21 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 8 Jun 2014 11:21:37 +0000 (11:21 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41054

package/devel/valgrind/patches/120-no_linux_ptrace_h.patch [new file with mode: 0644]

diff --git a/package/devel/valgrind/patches/120-no_linux_ptrace_h.patch b/package/devel/valgrind/patches/120-no_linux_ptrace_h.patch
new file mode 100644 (file)
index 0000000..f159876
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/coregrind/vgdb.c
++++ b/coregrind/vgdb.c
+@@ -102,7 +102,6 @@ I_die_here : (PTRACEINVOKER) architectur
+ #include <sys/user.h>
+ #if defined(VGO_linux)
+ #  include <sys/prctl.h>
+-#  include <linux/ptrace.h>
+ #endif
+ #endif