aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-12 20:30:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-12 20:30:37 +0000
commit039d815560e633e9f800143107523a3bed17c276 (patch)
tree96d1b5b79ca7a28a6a493ae6ec2f1f8f6d8acf03
parent996e57ab29e856b373a9cdf9e945834a86a4e1b9 (diff)
downloadupstream-039d815560e633e9f800143107523a3bed17c276.tar.gz
upstream-039d815560e633e9f800143107523a3bed17c276.tar.bz2
upstream-039d815560e633e9f800143107523a3bed17c276.zip
musl: fix toolchain build failure caused by some header changes
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41173 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--toolchain/musl/include/features.h2
-rw-r--r--toolchain/musl/include/sys/glibc-types.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/toolchain/musl/include/features.h b/toolchain/musl/include/features.h
index df54c16f0b..0a01f841b8 100644
--- a/toolchain/musl/include/features.h
+++ b/toolchain/musl/include/features.h
@@ -48,7 +48,7 @@
#define __GNU_LIBRARY__ 6
#define __GLIBC__ 2
-#define __GLIBC_MINOR__ 16
+#define __GLIBC_MINOR__ 2
#endif
#include <sys/glibc-types.h>
diff --git a/toolchain/musl/include/sys/glibc-types.h b/toolchain/musl/include/sys/glibc-types.h
index 1b2824932b..baa7eb5db0 100644
--- a/toolchain/musl/include/sys/glibc-types.h
+++ b/toolchain/musl/include/sys/glibc-types.h
@@ -1,6 +1,8 @@
#ifndef __MUSL_GLIBC_TYPES_H
#define __MUSL_GLIBC_TYPES_H
+#include <sys/cdefs.h>
+
/* Convenience types. */
typedef unsigned char __u_char;
typedef unsigned short int __u_short;
@@ -25,5 +27,6 @@ __extension__ typedef unsigned long long int __uint64_t;
#define __off64_t off_t
#define __loff_t off_t
typedef char *__caddr_t;
+#define __locale_t locale_t
#endif