From b8b6e958f2aa0ec32ab16877970f22673e5f0430 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 9 Apr 2020 17:56:12 -0500 Subject: [PATCH] xrt: Fix FTBFS on ppc64, s390x --- src/xrt/include/xrt/xrt_compiler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xrt/include/xrt/xrt_compiler.h b/src/xrt/include/xrt/xrt_compiler.h index 54ce706e0..990e02d86 100644 --- a/src/xrt/include/xrt/xrt_compiler.h +++ b/src/xrt/include/xrt/xrt_compiler.h @@ -23,7 +23,9 @@ */ #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) -#if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__) +#if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__) || \ + defined(_ARCH_PPC64) || defined(__s390x__) || \ + (defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ == 8) #define XRT_64_BIT #else #define XRT_32_BIT