From 0c10f3911dfe532dc26e56d45460ed885281f695 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Sat, 6 Jul 2013 14:49:08 +0000
Subject: [PATCH] tools: include endian.h from byteswap.h to ensure that
 bswap_* is available

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

SVN-Revision: 37183
---
 tools/include/byteswap.h | 2 ++
 1 file changed, 2 insertions(+)

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
-- 
GitLab