]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Sigh, some more portability for gcc
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 25 Mar 2023 15:26:34 +0000 (15:26 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 25 Mar 2023 15:26:34 +0000 (15:26 +0000)
src/rspamd.c

index 12ff6e27df9353604857e73de5b7d5777beefdbf..bcc4e56dded810b1fe2b106ff3322d7199f968db 100644 (file)
@@ -1291,6 +1291,9 @@ version (void)
 #else
        rspamd_printf ("LuaJIT enabled: FALSE\n");
 #endif
+#ifndef __has_feature
+#  define __has_feature(x) 0
+#endif
 #if (defined(__has_feature) && __has_feature(address_sanitizer)) || defined(ADDRESS_SANITIZER)
        rspamd_printf ("ASAN enabled: TRUE\n");
 #else