]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix build on Solaris
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 3 May 2018 12:52:10 +0000 (13:52 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 3 May 2018 12:52:10 +0000 (13:52 +0100)
Issue: #2213
Closes: #2213
contrib/t1ha/t1ha_bits.h

index 6b6370031183faf8524abaf6a31b27d34ac54feb..3e03c551d7f9e63d8baefc4587dbccc69453fea1 100644 (file)
@@ -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 */