summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2023-10-30 19:31:03 +0000
committerChristian Marangi <ansuelsmth@gmail.com>2023-11-02 20:20:53 +0100
commit4a8961f1dfba33b1e9a38dd0ecb3a8b03c46edbb (patch)
tree16aa0a76c2e27e2b9bf9af878cc92805956e691b /tools
parent376f1c80a967cf349e9d7d6168dd9bce3c35ebd8 (diff)
downloadopenwrt-4a8961f1dfba33b1e9a38dd0ecb3a8b03c46edbb.tar.gz
openwrt-4a8961f1dfba33b1e9a38dd0ecb3a8b03c46edbb.tar.bz2
openwrt-4a8961f1dfba33b1e9a38dd0ecb3a8b03c46edbb.zip
tools: macOS: types.h: fix missing unsigned types
For some reason unsigned types were not added in commit 0a06fcf608dd ("build: fix kernel 5.4 on macos"), which led to bunch of hacks, like commit 3cc57ba4627c ("uboot-sunxi: add missing type __u64") or commit 997ff740dc44 ("uboot-mediatek: fix build on Mac OS X"). So lets add the missing unsigned types to workaround it in a bit more maintainable way. Fixes: #13833 Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'tools')
-rw-r--r--tools/include/asm/types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/include/asm/types.h b/tools/include/asm/types.h
index 2c91232619..5a12bbe91b 100644
--- a/tools/include/asm/types.h
+++ b/tools/include/asm/types.h
@@ -10,15 +10,20 @@
#define _ASM_GENERIC_INT_LL64_H
typedef __signed__ char __s8;
+typedef unsigned char __u8;
typedef __signed__ short __s16;
+typedef unsigned short __u16;
typedef __signed__ int __s32;
+typedef unsigned int __u32;
#ifdef __GNUC__
__extension__ typedef __signed__ long long __s64;
+__extension__ typedef unsigned long long __u64;
#else
typedef __signed__ long long __s64;
+typedef unsigned long long __u64;
#endif
#endif /* _ASM_GENERIC_INT_LL64_H */