diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-19 21:15:06 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:55 +1000 |
commit | a602a98b495d8b20cf1a1456cf53710ab55d408c (patch) | |
tree | 2b4518dcb0b891fe6e47e63d25744d089047c6fb /lib | |
parent | 54772758a8992f5907f7e2372edfba6f1e9bc2f7 (diff) | |
download | samba-a602a98b495d8b20cf1a1456cf53710ab55d408c.tar.gz samba-a602a98b495d8b20cf1a1456cf53710ab55d408c.tar.bz2 samba-a602a98b495d8b20cf1a1456cf53710ab55d408c.zip |
build: added WORDS_BIGENDIAN test
Diffstat (limited to 'lib')
-rw-r--r-- | lib/replace/wscript | 5 |
1 files changed, 5 insertions, 0 deletions
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') |