]> source.dussan.org Git - rspamd.git/commitdiff
Workaround for older/traditional SunOS platforms where endian.h is not present.
authorFilip Hajny <filip@hajny.net>
Thu, 1 Feb 2018 13:27:15 +0000 (14:27 +0100)
committerFilip Hajny <filip@hajny.net>
Thu, 1 Feb 2018 13:27:15 +0000 (14:27 +0100)
config.h.in

index 3bdb5bc75c5d04a31c7d157d6903dad6a85111aa..402d410f16d83f344b61314646cc2e908d96759f 100644 (file)
  #include <sys/endian.h>
 #elif defined(HAVE_MACHINE_ENDIAN_H)
  #include <machine/endian.h>
+#elif defined(__sun)
+ #include <sys/byteorder.h>
+ #ifdef _LITTLE_ENDIAN
+  #define BYTE_ORDER LITTLE_ENDIAN
+ #else
+  #define BYTE_ORDER BIG_ENDIAN
+ #endif
 #endif
 
 #ifndef BYTE_ORDER