summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-07-06 14:49:08 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-07-06 14:49:08 +0000
commit7a5e47a69bdd1637bce7ffaf54a087c42e672cc2 (patch)
tree5e39358414c74ddae185402e49102d7ac195974c /tools
parentfe8d052279ca6c2e5511c51a255bd3dc46dc64c8 (diff)
tools: include endian.h from byteswap.h to ensure that bswap_* is available
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37183 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r--tools/include/byteswap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/byteswap.h b/tools/include/byteswap.h
index fe279ceb2c..015f09740a 100644
--- a/tools/include/byteswap.h
+++ b/tools/include/byteswap.h
@@ -1,3 +1,5 @@
#if defined(__linux__) || defined(__CYGWIN__)
#include_next <byteswap.h>
+#else
+#include <endian.h>
#endif