diff --git a/ChangeLog b/ChangeLog index 711ecda8ed..3edcb832b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-12-31 H.J. Lu + + [BZ #24022] + * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if + exists with __has_include__ before including it. + 2018-12-31 Joseph Myers * scripts/build-many-glibcs.py (Context.checkout): Default Linux diff --git a/sysdeps/unix/sysv/linux/riscv/flush-icache.c b/sysdeps/unix/sysv/linux/riscv/flush-icache.c index d612ef4c6c..0b2042620b 100644 --- a/sysdeps/unix/sysv/linux/riscv/flush-icache.c +++ b/sysdeps/unix/sysv/linux/riscv/flush-icache.c @@ -21,7 +21,11 @@ #include #include #include -#include +#if __has_include__ () +# include +#else +# include +#endif typedef int (*func_type) (void *, void *, unsigned long int);