From 765fcfd0261c54af2b550a77d7dbe49d5395c408 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 27 Feb 2014 09:39:53 +0100 Subject: rework musl patches, mostly from sabotage linux --- package/strace/patches/patch-defs_h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/strace/patches/patch-defs_h (limited to 'package/strace/patches/patch-defs_h') diff --git a/package/strace/patches/patch-defs_h b/package/strace/patches/patch-defs_h new file mode 100644 index 000000000..910715f7a --- /dev/null +++ b/package/strace/patches/patch-defs_h @@ -0,0 +1,33 @@ +--- strace-4.8.orig/defs.h 2013-05-14 16:10:42.000000000 +0200 ++++ strace-4.8/defs.h 2014-02-26 17:36:34.000000000 +0100 +@@ -155,18 +155,18 @@ extern char *stpcpy(char *dst, const cha + || defined(METAG) \ + || defined(TILE) \ + || defined(XTENSA) \ +- ) && defined(__GLIBC__) ++ ) && defined(__linux__) + # include + #else + /* Work around awkward prototype in ptrace.h. */ + # define ptrace xptrace + # include + # undef ptrace +-# ifdef POWERPC ++#if defined(POWERPC) && defined(__GLIBC__) + # define __KERNEL__ + # include + # undef __KERNEL__ +-# endif ++#endif + extern long ptrace(int, int, char *, long); + #endif + +@@ -222,7 +222,7 @@ extern long ptrace(int, int, char *, lon + # define PTRACE_EVENT_EXIT 6 + #endif + +-#if !defined(__GLIBC__) ++#if !defined(__GLIBC__) && !defined(PTRACE_PEEKUSER) + # define PTRACE_PEEKUSER PTRACE_PEEKUSR + # define PTRACE_POKEUSER PTRACE_POKEUSR + #endif -- cgit v1.2.3