commit 53abb8d: [Minor] Sigh, some more portability for gcc

Vsevolod Stakhov vsevolod at rspamd.com
Sat Mar 25 15:28:07 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-03-25 15:26:34 +0000
URL: https://github.com/rspamd/rspamd/commit/53abb8d36c8cacc95a07c675b04cbd7c18b91ce8

[Minor] Sigh, some more portability for gcc

---
 src/rspamd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/rspamd.c b/src/rspamd.c
index 12ff6e27d..bcc4e56dd 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -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


More information about the Commits mailing list