no_sanitize(integer) is not in 3.5 (debian stable's version), but is
documented in 3.9. Exactly when it appeared isn't immediately obvious.
Signed-off-by: Phil Carmody <phil@dovecot.fi>
# define likely(expr) expr
#endif
-#if defined(__clang__)
+#if defined(__clang__) && ((__clang_major__ > 4) || (__clang_major__ == 3 && __clang_minor__ >= 9))
# define ATTR_UNSIGNED_WRAPS __attribute__((no_sanitize("integer")))
#else
# define ATTR_UNSIGNED_WRAPS