|
@@ -21,8 +21,10 @@ TOOLCHAIN_ADD_TOOLCHAIN_DEPENDENCY = NO
|
|
# IFF_DORMANT and IFF_ECHO, add another macro to suppress them in the
|
|
# IFF_DORMANT and IFF_ECHO, add another macro to suppress them in the
|
|
# kernel header, and avoid macro/enum conflict.
|
|
# kernel header, and avoid macro/enum conflict.
|
|
#
|
|
#
|
|
|
|
+# Kernel version 3.12 introduced the libc-compat.h header.
|
|
|
|
+#
|
|
# [1] http://www.openwall.com/lists/musl/2015/10/08/2
|
|
# [1] http://www.openwall.com/lists/musl/2015/10/08/2
|
|
-ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
|
|
|
|
|
+ifeq ($(BR2_TOOLCHAIN_USES_MUSL)$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12),yy)
|
|
define TOOLCHAIN_MUSL_KERNEL_HEADERS_COMPATIBILITY_HACK
|
|
define TOOLCHAIN_MUSL_KERNEL_HEADERS_COMPATIBILITY_HACK
|
|
$(SED) 's/^#if defined(__GLIBC__)$$/#if 1/' \
|
|
$(SED) 's/^#if defined(__GLIBC__)$$/#if 1/' \
|
|
$(STAGING_DIR)/usr/include/linux/libc-compat.h
|
|
$(STAGING_DIR)/usr/include/linux/libc-compat.h
|