From 7f596814c14a5844d49c50cad68df568e6417793 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 3 May 2018 13:52:10 +0100 Subject: [PATCH] [Minor] Fix build on Solaris Issue: #2213 Closes: #2213 --- contrib/t1ha/t1ha_bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/t1ha/t1ha_bits.h b/contrib/t1ha/t1ha_bits.h index 6b6370031..3e03c551d 100644 --- a/contrib/t1ha/t1ha_bits.h +++ b/contrib/t1ha/t1ha_bits.h @@ -390,7 +390,7 @@ static __always_inline uint16_t fetch16_le(const void *v) { #endif /* fetch16_le */ #if T1HA_USE_FAST_ONESHOT_READ && UNALIGNED_OK && defined(PAGESIZE) && \ - PAGESIZE > 0 && !defined(__SANITIZE_ADDRESS__) + !defined(__SANITIZE_ADDRESS__) && !defined(__sun) #define can_read_underside(ptr, size) \ ((size) <= sizeof(uintptr_t) && ((PAGESIZE - (size)) & (uintptr_t)(ptr)) != 0) #endif /* can_fast_read */ -- 2.39.5