summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-19 21:15:06 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:55 +1000
commita602a98b495d8b20cf1a1456cf53710ab55d408c (patch)
tree2b4518dcb0b891fe6e47e63d25744d089047c6fb /lib
parent54772758a8992f5907f7e2372edfba6f1e9bc2f7 (diff)
downloadsamba-a602a98b495d8b20cf1a1456cf53710ab55d408c.tar.gz
samba-a602a98b495d8b20cf1a1456cf53710ab55d408c.tar.bz2
samba-a602a98b495d8b20cf1a1456cf53710ab55d408c.zip
build: added WORDS_BIGENDIAN test
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript5
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')