diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dns.h | 2 | ||||
-rw-r--r-- | src/evdns/CMakeLists.txt | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -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) |