From a87094849f50d0a1728fcb694c393f6c89e17248 Mon Sep 17 00:00:00 2001 From: Breno Leitao Date: Thu, 6 Apr 2017 13:59:57 -0300 Subject: [PATCH] peekfd: Include headers for ppc64 Currently peekfd fails to build on ppc64le architecture with musl because it does not find reference for __WORDSIZE. This patch just includes reference for this macro if it was not previously defined. --- src/peekfd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/peekfd.c b/src/peekfd.c index 32723b5..46f52a2 100644 --- a/src/peekfd.c +++ b/src/peekfd.c @@ -50,6 +50,10 @@ #define REG_PARAM2 rsi #define REG_PARAM3 rdx #elif PPC + #if !defined(__WORDSIZE) + #include + #endif + #define REG_ORIG_ACCUM gpr[0] #define REG_ACCUM gpr[3] #define REG_PARAM1 orig_gpr3 -- 2.40.0