summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-01 13:53:39 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-11-01 13:53:39 -0400
commit1ddef81b97c30a15822fa0bedbd85f10caa6ed75 (patch)
tree24788408b1a0d6b2ea05dd72c0c0a5e39e120838 /SConstruct
parent7f39842bc9e38515b3ad43cbd0f3df25f1fa0ba1 (diff)
downloadgpsd-1ddef81b97c30a15822fa0bedbd85f10caa6ed75.tar.gz
Trying to get the endian.h location right.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index ff072d74..43f2de6f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -632,7 +632,11 @@ confdefs.append('''
#ifdef __LITTLE_ENDIAN__
#undef WORDS_BIGENDIAN
#else
+#ifdef BSD
+#include <sys/endian.h>
+#else
#include <endian.h>
+#endif
#if __BYTE_ORDER == __BIG_ENDIAN
#define WORDS_BIGENDIAN 1
#elif __BYTE_ORDER == __LITTLE_ENDIAN