mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
45a2771953
On musl based distributions, u-boot 2010.03 fails to build with: u-boot-2010.03/include/u-boot/crc.h:29:50: error: unknown type name 'uint' uint32_t crc32 (uint32_t, const unsigned char *, uint); The issue was fixed in the newer u-boot-2018.03 version, this commit backports the change to the older version used by ar71xx/ath79. Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com> [add commit message from PR description] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
14 lines
368 B
Diff
14 lines
368 B
Diff
--- a/include/compiler.h 2018-08-29
|
|
+++ b/include/compiler.h 2018-08-29
|
|
@@ -46,6 +46,10 @@ extern int errno;
|
|
#ifdef __linux__
|
|
# include <endian.h>
|
|
# include <byteswap.h>
|
|
+#ifndef __GLIBC__
|
|
+typedef unsigned long ulong;
|
|
+typedef unsigned int uint;
|
|
+#endif
|
|
#elif defined(__MACH__) || defined(__FreeBSD__)
|
|
# include <machine/endian.h>
|
|
typedef unsigned long ulong;
|