diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-09 13:47:36 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-09 13:47:36 +0000 |
commit | d2675afeccc759c025a559e815c6e69ea2255b64 (patch) | |
tree | 9ac4d14b9e79146829e283e35071e92bd5bd25dd /toolchain/musl/include/sys/glibc-types.h | |
parent | 9c40648f3a40e50b426c424b67b04c71e3eac2e1 (diff) | |
download | upstream-d2675afeccc759c025a559e815c6e69ea2255b64.tar.gz upstream-d2675afeccc759c025a559e815c6e69ea2255b64.tar.bz2 upstream-d2675afeccc759c025a559e815c6e69ea2255b64.zip |
musl: install a few extra headers to improve compatibility with various packages
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41056
Diffstat (limited to 'toolchain/musl/include/sys/glibc-types.h')
-rw-r--r-- | toolchain/musl/include/sys/glibc-types.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/toolchain/musl/include/sys/glibc-types.h b/toolchain/musl/include/sys/glibc-types.h new file mode 100644 index 0000000000..1b2824932b --- /dev/null +++ b/toolchain/musl/include/sys/glibc-types.h @@ -0,0 +1,29 @@ +#ifndef __MUSL_GLIBC_TYPES_H +#define __MUSL_GLIBC_TYPES_H + +/* Convenience types. */ +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; + +/* Fixed-size types, underlying types depend on word size and compiler. */ +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +#if __WORDSIZE == 64 +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +#else +__extension__ typedef signed long long int __int64_t; +__extension__ typedef unsigned long long int __uint64_t; +#endif + +#define __off64_t off_t +#define __loff_t off_t +typedef char *__caddr_t; + +#endif |