Permalink
Browse files

psmisc: make musl patch __GLIBC__ safe

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
  • Loading branch information...
pullmoll committed Jan 11, 2019
1 parent 9380a30 commit f90abed201e159a099feb72d1e35a9822fd6b8ca
Showing with 5 additions and 1 deletion.
  1. +5 −1 srcpkgs/psmisc/patches/musl_ptregs.patch
@@ -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>

0 comments on commit f90abed

Please sign in to comment.