[OpenWrt-Devel,6/8] tools/firmware-utils: add cygwin compatibility
diff mbox series

Message ID 20191008010225.8822-6-rosenp@gmail.com
State Rejected
Delegated to: Petr Štetiar
Headers show
Series
  • [OpenWrt-Devel,1/8] ncurses: add cygwin compatibility
Related show

Commit Message

Rosen Penev Oct. 8, 2019, 1:02 a.m. UTC
From: Alexey Loukianov <lx2@lexa2.ru>

This patches mkheader_gemtek.c to handle endiannes on CYGWIN
hosts the same way it is handled on Linux.

Signed-off-by: Alexey Loukianov <lx2@lexa2.ru>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 tools/firmware-utils/src/mkheader_gemtek.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/tools/firmware-utils/src/mkheader_gemtek.c b/tools/firmware-utils/src/mkheader_gemtek.c
index 9e618efbad..65c41322d1 100644
--- a/tools/firmware-utils/src/mkheader_gemtek.c
+++ b/tools/firmware-utils/src/mkheader_gemtek.c
@@ -46,7 +46,7 @@ 
 # include <libkern/OSByteOrder.h>
 # define le32 OSSwapHostToLittleInt32
 #else
-# if defined(__linux__)
+# if (defined(__linux__) || defined(__CYGWIN__))
 #  include <endian.h>
 #  if __BYTE_ORDER == __BIG_ENDIAN
 #   define CPU_BIG_ENDIAN