And fix a couple of spelling errors while we're here
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* Copyright (C) 2008,2009 Wang Jian <lark@linux.net.cn>
*/
+#include <byteswap.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
* Copyright (C) 2010, Intel Corp. Huang Ying <ying.huang@intel.com>
*/
+#include <byteswap.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
* Add option -2 to allow v2 header
*/
+#include <byteswap.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#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);
// SPDX-License-Identifier: GPL-2.0-only
+#include <byteswap.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#define STORE32_LE(X) (X)
#define LOAD32_LE(X) (X)
#else
-#error unkown endianness!
+#error unknown endianness!
#endif
/**********************************************************************/