aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-07-06 14:49:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-07-06 14:49:08 +0000
commit9bb3288ad54456a3a6da86481d09cc261053a918 (patch)
tree5e39358414c74ddae185402e49102d7ac195974c
parente7e1252ca26c9b0f3b6940eb62d56f750dd34ee1 (diff)
downloadupstream-9bb3288ad54456a3a6da86481d09cc261053a918.tar.gz
upstream-9bb3288ad54456a3a6da86481d09cc261053a918.tar.bz2
upstream-9bb3288ad54456a3a6da86481d09cc261053a918.zip
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
-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