From c5d65b9430d7c6991e2f6fb9454bfe761737d1d0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 29 Apr 2018 21:22:22 +0100 Subject: [PATCH] [Minor] Try to fix endiannes detection on Solaris Issue: #2204 --- config.h.in | 6 ++++++ contrib/librdns/dns_private.h | 1 + 2 files changed, 7 insertions(+) diff --git a/config.h.in b/config.h.in index aa875534d..007586b8f 100644 --- a/config.h.in +++ b/config.h.in @@ -158,6 +158,12 @@ #include #elif defined(__sun) #include + #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 diff --git a/contrib/librdns/dns_private.h b/contrib/librdns/dns_private.h index c51849c8f..37d0240b6 100644 --- a/contrib/librdns/dns_private.h +++ b/contrib/librdns/dns_private.h @@ -24,6 +24,7 @@ #ifndef DNS_PRIVATE_H_ #define DNS_PRIVATE_H_ +#include "config.h" #include "uthash.h" #include "utlist.h" #include "rdns.h" -- 2.39.5