mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-11 01:23:51 +02:00
24 lines
550 B
Diff
24 lines
550 B
Diff
Author: Breno Leitao <brenohl@br.ibm.com>
|
|
Date: Thu Apr 6 14:03:00 2017 -0300
|
|
|
|
peekfd: Avoid pt_regs clash
|
|
|
|
Index: psmisc-22.21/src/peekfd.c
|
|
===================================================================
|
|
--- src/peekfd.c.old
|
|
+++ src/peekfd.c
|
|
@@ -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>
|
|
|