psmisc: fix ppc64*-musl

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-01-12 21:49:04 +01:00
parent 50b86ba65d
commit bb66d193e5
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -0,0 +1,12 @@
--- src/peekfd.c 2018-08-13 13:24:56.871341954 +0200
+++ src/peekfd.c 2019-01-12 21:44:15.913496261 +0100
@@ -30,7 +30,9 @@
#include <asm/ptrace.h>
#include <byteswap.h>
#include <endian.h>
+#if !defined(PPC) || defined(__GLIBC__)
#include <sys/user.h>
+#endif
#include <stdlib.h>
#include <getopt.h>
#include <ctype.h>