Add more missing includes for byte swap operations
[project/firmware-utils.git] / src / trx.c
index e09d671f0283554539cf4347148b9426b5f27dfc..4b7f778e26acead3a83454aa1c03611ab407f0e9 100644 (file)
--- a/src/trx.c
+++ b/src/trx.c
@@ -30,6 +30,7 @@
  * Add option -2 to allow v2 header
  */
 
+#include <byteswap.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stddef.h>
@@ -45,7 +46,7 @@
 #define STORE32_LE(X)          (X)
 #define LOAD32_LE(X)           (X)
 #else
-#error unkown endianness!
+#error unknown endianness!
 #endif
 
 uint32_t crc32buf(char *buf, size_t len);