From 66269e74a00e531a5f27fcb4fd65eb061d02dc5c Mon Sep 17 00:00:00 2001 From: Like Ma Date: Sat, 13 Jan 2024 15:36:20 +0800 Subject: [PATCH] Fix building xxhash on AIX 5.1 --- lib/common/xxhash.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/lib/common/xxhash.h b/lib/common/xxhash.h index 424ed19b8..449bd5f08 100644 --- a/lib/common/xxhash.h +++ b/lib/common/xxhash.h @@ -575,7 +575,11 @@ typedef uint32_t XXH32_hash_t; #elif !defined (__VMS) \ && (defined (__cplusplus) \ || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include +# ifdef _AIX +# include +# else +# include +# endif typedef uint32_t XXH32_hash_t; #else @@ -849,7 +853,11 @@ typedef uint64_t XXH64_hash_t; #elif !defined (__VMS) \ && (defined (__cplusplus) \ || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include +# ifdef _AIX +# include +# else +# include +# endif typedef uint64_t XXH64_hash_t; #else # include @@ -2465,7 +2473,11 @@ static void* XXH_memcpy(void* dest, const void* src, size_t size) #if !defined (__VMS) \ && (defined (__cplusplus) \ || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include +# ifdef _AIX +# include +# else +# include +# endif typedef uint8_t xxh_u8; #else typedef unsigned char xxh_u8; -- 2.47.2