about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-06-06 11:24:32 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-01-21 13:42:47 +0100
commite0a0770bb4221001a1138d8d3ea9da0d3dce75df (patch)
tree56b96bc52ad885d70f854703244e9cde12e036c6
parentea6f2c3174232ca7f66ab1524f0d5fedc7b26f23 (diff)
downloadglibc-e0a0770bb4221001a1138d8d3ea9da0d3dce75df.tar.gz
glibc-e0a0770bb4221001a1138d8d3ea9da0d3dce75df.tar.xz
glibc-e0a0770bb4221001a1138d8d3ea9da0d3dce75df.zip
riscv: Do not use __has_include__
The user-visible preprocessor construct is called __has_include.

(cherry picked from commit 28dd3939221ab26c6774097e9596e30d9753f758)
-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 596604df09..1bd2a57c73 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-07-24  Florian Weimer  <fweimer@redhat.com>
 
 	[BZ #24532]
diff --git a/sysdeps/unix/sysv/linux/riscv/flush-icache.c b/sysdeps/unix/sysv/linux/riscv/flush-icache.c
index cd5c400977..f2dfcc50d0 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>