From: Felix Fietkau <nbd@openwrt.org>
Date: Sat, 6 Jul 2013 14:49:08 +0000 (+0000)
Subject: tools: include endian.h from byteswap.h to ensure that bswap_* is available
X-Git-Tag: reboot~10021
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0c10f3911dfe532dc26e56d45460ed885281f695;p=openwrt%2Fstaging%2Fchunkeey.git

tools: include endian.h from byteswap.h to ensure that bswap_* is available

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37183
---

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