summaryrefslogtreecommitdiff
path: root/tools
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
commit0c10f3911dfe532dc26e56d45460ed885281f695 (patch)
tree2a93078e065b477198770daf2a8e85fa40b4d512 /tools
parent09551cd7c3bb4416fb41181df37e1860aa9c8681 (diff)
downloadmtk-20170518-0c10f3911dfe532dc26e56d45460ed885281f695.zip
mtk-20170518-0c10f3911dfe532dc26e56d45460ed885281f695.tar.gz
mtk-20170518-0c10f3911dfe532dc26e56d45460ed885281f695.tar.bz2
tools: include endian.h from byteswap.h to ensure that bswap_* is available
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37183
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 fe279ce..015f097 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