]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Try to fix endiannes detection on Solaris
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 29 Apr 2018 20:22:22 +0000 (21:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 29 Apr 2018 20:22:22 +0000 (21:22 +0100)
Issue: #2204

config.h.in
contrib/librdns/dns_private.h

index aa875534d37e8557700be527209e36ac2ecd4e65..007586b8fa6d51a257a3be82403bf421b05f5cdf 100644 (file)
  #include <machine/endian.h>
 #elif defined(__sun)
  #include <sys/byteorder.h>
+ #ifndef LITTLE_ENDIAN
+ #define LITTLE_ENDIAN   1234
+ #endif
+ #ifndef BIG_ENDIAN
+ #define BIG_ENDIAN      4321
+ #endif
  #ifdef _LITTLE_ENDIAN
   #define BYTE_ORDER LITTLE_ENDIAN
  #else
index c51849c8fb9d608840e594447f3ec53e7dea0f8b..37d0240b6c68b5f378256a1cb5c29bc4dd4fdd69 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef DNS_PRIVATE_H_
 #define DNS_PRIVATE_H_
 
+#include "config.h"
 #include "uthash.h"
 #include "utlist.h"
 #include "rdns.h"