From: Breno Leitao Date: Thu, 6 Apr 2017 16:59:57 +0000 (-0300) Subject: peekfd: Include headers for ppc64 X-Git-Tag: v23.2~15^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a87094849f50d0a1728fcb694c393f6c89e17248;p=psmisc 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. --- 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