psmisc: make musl patch __GLIBC__ safe
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
9380a30987
commit
f90abed201
|
@ -7,13 +7,17 @@ Index: psmisc-22.21/src/peekfd.c
|
|||
===================================================================
|
||||
--- src/peekfd.c.old
|
||||
+++ src/peekfd.c
|
||||
@@ -27,7 +27,9 @@
|
||||
@@ -27,7 +27,13 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/syscall.h>
|
||||
+#if !defined(__GLIBC__)
|
||||
+#define pt_regs uapi_pt_regs
|
||||
+#endif
|
||||
#include <asm/ptrace.h>
|
||||
+#if !defined(__GLIBC__)
|
||||
+#undef pt_regs
|
||||
+#endif
|
||||
#include <byteswap.h>
|
||||
#include <endian.h>
|
||||
#include <sys/user.h>
|
||||
|
|
Loading…
Reference in New Issue