Add more missing include for byte swap operations
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 17 Oct 2021 08:10:30 +0000 (10:10 +0200)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sun, 17 Oct 2021 09:17:08 +0000 (10:17 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
src/mkcasfw.c
src/mkcsysimg.c
src/mkmylofw.c
src/osbridge-crc.c

index 8d3ea40509d4ab09ac24755d9dc4f38e69480f41..879637356f676db38af03b4d6c12b5edd9972f6e 100644 (file)
@@ -16,9 +16,7 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <endian.h>     /* for __BYTE_ORDER */
-#if defined(__CYGWIN__)
-#  include <byteswap.h>
-#endif
+#include <byteswap.h>
 
 #if (__BYTE_ORDER == __LITTLE_ENDIAN)
 #  define HOST_TO_LE16(x)      (x)
index 2347e63da119c6de20b9403c9d1417d6b8fda96d..cbe06bb36e5ee0f4bdc5172ef09903b6c468488b 100644 (file)
@@ -19,9 +19,7 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <endian.h>     /* for __BYTE_ORDER */
-#if defined(__CYGWIN__)
-#  include <byteswap.h>
-#endif
+#include <byteswap.h>
 
 #include "csysimg.h"
 
index 9999b3c235c874202acff4c20300dd1a979ba49e..fd79f1ca83d3a87157fe313750e25847134c3c0d 100644 (file)
 #include <errno.h>
 #include <sys/stat.h>
 #include <endian.h>     /* for __BYTE_ORDER */
-
-#if defined(__CYGWIN__)
-#  include <byteswap.h>
-#endif
+#include <byteswap.h>
 
 #if (__BYTE_ORDER == __LITTLE_ENDIAN)
 #  define HOST_TO_LE16(x)      (x)
index e9c577d8ed5e0e7a4c3b8ab41077ffc2f0806ff1..f341972c4ae7bfe5f00ad7b5b045e0e138842410 100644 (file)
@@ -3,6 +3,7 @@
  *  Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
  */
 
+#include <byteswap.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>