Add missing includes for byte swap operations
authorPetr Štetiar <ynezz@true.cz>
Mon, 5 Jul 2021 08:49:57 +0000 (10:49 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 5 Jul 2021 08:59:44 +0000 (10:59 +0200)
Fixes bunch of following issues:

 CMakeFiles/mktplinkfw2.dir/src/mktplinkfw2.c.o: In function `fill_header':
 mktplinkfw2.c:(.text+0xad): undefined reference to `bswap_32'

Signed-off-by: Petr Štetiar <ynezz@true.cz>
src/mkedimaximg.c
src/mkplanexfw.c
src/mktplinkfw.c
src/mktplinkfw2.c
src/mkzcfw.c
src/mkzynfw.c

index 541eaaaa3f90a5b15d33678e2448a10d35ddb5ab..8248977c751906361a538381794a89fe516f07bf 100644 (file)
@@ -11,6 +11,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <byteswap.h>
 #include <libgen.h>
 #include <getopt.h>
 #include <errno.h>
index 0230fe22528e1763c248bb432ed7d46984392337..ab2a7a74eed78bf337974b0ac538b129704a9856 100644 (file)
@@ -11,6 +11,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
+#include <byteswap.h>
 #include <unistd.h>     /* for unlink() */
 #include <libgen.h>
 #include <getopt.h>     /* for getopt() */
index ed785b48e562a02cb09fa6baf6d6bd2c68692a49..0d380e37e139dd8b2f7aad734dab9cee36f28f51 100644 (file)
@@ -15,6 +15,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
+#include <byteswap.h>
 #include <unistd.h>     /* for unlink() */
 #include <libgen.h>
 #include <getopt.h>     /* for getopt() */
index 053ff0050b145ab02fff8ad1b7ca46030e848d18..2c4eee49c282dfc692590166a755481d67cf412b 100644 (file)
@@ -15,6 +15,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
+#include <byteswap.h>
 #include <unistd.h>     /* for unlink() */
 #include <libgen.h>
 #include <getopt.h>     /* for getopt() */
index e21504e26603629c87f9a9cb62248ca913c103b9..96adec5f15a266e69e8fc36c49a769c07bdc1a43 100644 (file)
@@ -11,6 +11,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
+#include <byteswap.h>
 #include <unistd.h>     /* for unlink() */
 #include <libgen.h>
 #include <getopt.h>     /* for getopt() */
index 365264ca680dc9380aef701fcd8a906e29b1af25..e1de1f717ef4240dbe8177c7961a5a56ae3682e6 100644 (file)
@@ -17,6 +17,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
+#include <byteswap.h>
 #include <unistd.h>    /* for unlink() */
 #include <libgen.h>
 #include <getopt.h>    /* for getopt() */