musl: install a few extra headers to improve compatibility with various packages
[openwrt/staging/chunkeey.git] / toolchain / musl / include / sys / glibc-types.h
1 #ifndef __MUSL_GLIBC_TYPES_H
2 #define __MUSL_GLIBC_TYPES_H
3
4 /* Convenience types. */
5 typedef unsigned char __u_char;
6 typedef unsigned short int __u_short;
7 typedef unsigned int __u_int;
8 typedef unsigned long int __u_long;
9
10 /* Fixed-size types, underlying types depend on word size and compiler. */
11 typedef signed char __int8_t;
12 typedef unsigned char __uint8_t;
13 typedef signed short int __int16_t;
14 typedef unsigned short int __uint16_t;
15 typedef signed int __int32_t;
16 typedef unsigned int __uint32_t;
17 #if __WORDSIZE == 64
18 typedef signed long int __int64_t;
19 typedef unsigned long int __uint64_t;
20 #else
21 __extension__ typedef signed long long int __int64_t;
22 __extension__ typedef unsigned long long int __uint64_t;
23 #endif
24
25 #define __off64_t off_t
26 #define __loff_t off_t
27 typedef char *__caddr_t;
28
29 #endif