From: Vsevolod Stakhov Date: Thu, 3 May 2018 12:52:10 +0000 (+0100) Subject: [Minor] Fix build on Solaris X-Git-Tag: 1.7.5~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f596814c14a5844d49c50cad68df568e6417793;p=rspamd.git [Minor] Fix build on Solaris Issue: #2213 Closes: #2213 --- 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 */