Fix build against musl libc.

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>
This commit is contained in:
Stijn Tintel 2022-11-24 06:21:06 +02:00
parent f1f88825c3
commit 48eefee749

View File

@ -10,6 +10,10 @@
# 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: