aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dns.h2
-rw-r--r--src/evdns/CMakeLists.txt4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/dns.h b/src/dns.h
index ba2a60c6e..526598e6a 100644
--- a/src/dns.h
+++ b/src/dns.h
@@ -146,7 +146,7 @@ struct rspamd_dns_reply {
struct dns_header {
guint qid:16;
-#if __BYTE_ORDER == BIG_ENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
guint qr:1;
guint opcode:4;
guint aa:1;
diff --git a/src/evdns/CMakeLists.txt b/src/evdns/CMakeLists.txt
index aef7f95d2..fff890e59 100644
--- a/src/evdns/CMakeLists.txt
+++ b/src/evdns/CMakeLists.txt
@@ -2,4 +2,8 @@
SET(EVDNSSRC evdns.c)
ADD_LIBRARY(rspamd_evdns STATIC ${EVDNSSRC})
+IF(CMAKE_COMPILER_IS_GNUCC)
SET_TARGET_PROPERTIES(rspamd_evdns PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing -DRSPAMD_LIB")
+ELSE
+SET_TARGET_PROPERTIES(rspamd_evdns PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
+ENDIF(CMAKE_COMPILER_IS_GNUCC)