aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-06-06 11:24:32 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-06-06 11:24:32 +0200
commit28dd3939221ab26c6774097e9596e30d9753f758 (patch)
treef4bcb0e6dc1ae91a026f8aa5f741d5bbaf810c85
parent0158473d8ff72d97e2163f66dcd8fb627fee4645 (diff)
downloadglibc-28dd3939221ab26c6774097e9596e30d9753f758.tar.gz
glibc-28dd3939221ab26c6774097e9596e30d9753f758.tar.xz
glibc-28dd3939221ab26c6774097e9596e30d9753f758.zip
riscv: Do not use __has_include__
The user-visible preprocessor construct is called __has_include.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/riscv/flush-icache.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 82ae58017ae..89176cbccd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-06-06 Florian Weimer <fweimer@redhat.com>
+
+ * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
+ internal GCC preprocessor identifier __has_include__.
+
2019-06-05 Paul A. Clarke <pc@us.ibm.com>
* sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
diff --git a/sysdeps/unix/sysv/linux/riscv/flush-icache.c b/sysdeps/unix/sysv/linux/riscv/flush-icache.c
index cd5c4009779..f2dfcc50d0b 100644
--- a/sysdeps/unix/sysv/linux/riscv/flush-icache.c
+++ b/sysdeps/unix/sysv/linux/riscv/flush-icache.c
@@ -21,7 +21,7 @@
#include <stdlib.h>
#include <atomic.h>
#include <sys/cachectl.h>
-#if __has_include__ (<asm/syscalls.h>)
+#if __has_include (<asm/syscalls.h>)
# include <asm/syscalls.h>
#else
# include <asm/unistd.h>