musl: fix toolchain build failure caused by some header changes
authorFelix Fietkau <nbd@openwrt.org>
Thu, 12 Jun 2014 20:30:37 +0000 (20:30 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 12 Jun 2014 20:30:37 +0000 (20:30 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41173

toolchain/musl/include/features.h
toolchain/musl/include/sys/glibc-types.h

index df54c16f0b7c08744b1919712dc920f45203bc85..0a01f841b8e55112d24b1cd0863458db2dae0401 100644 (file)
@@ -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>
index 1b2824932b84f4731f7ad82c9e65a812202bcb09..baa7eb5db042bca01a6eaeb13d01c0a22e1a9faa 100644 (file)
@@ -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