From a602a98b495d8b20cf1a1456cf53710ab55d408c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 19 Mar 2010 21:15:06 +1100 Subject: build: added WORDS_BIGENDIAN test --- lib/replace/wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/replace/wscript b/lib/replace/wscript index 20d757cb8f..575dcf9ac2 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -134,6 +134,11 @@ def configure(conf): conf.CHECK_TYPE('offset_t', 'loff_t') conf.CHECK_TYPE('volatile int', define='HAVE_VOLATILE') + conf.CHECK_CODE('long one = 1; return ((char *)(&one))[0]', + execute=True, + define='WORDS_BIGENDIAN') + + conf.CHECK_TYPE_IN('struct ifaddrs', 'ifaddrs.h') conf.CHECK_TYPE_IN('struct addrinfo', 'netdb.h') conf.CHECK_TYPE_IN('struct sockaddr', 'sys/socket.h') -- cgit