The musl C library does not define __attribute_const__. Add it to
include/linux/compiler.h with a guard to fix build against musl libc.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
# define __always_inline inline __attribute__((always_inline))
#endif
# define __always_inline inline __attribute__((always_inline))
#endif
+#ifndef __attribute_const__
+#define __attribute_const__ __attribute__((__const__))
+#endif
+
#ifdef __ANDROID__
/*
* FIXME: Big hammer to get rid of tons of:
#ifdef __ANDROID__
/*
* FIXME: Big hammer to get rid of tons of: