mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
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;
|