|
@@ -0,0 +1,28 @@
|
|
|
+From 28dd3939221ab26c6774097e9596e30d9753f758 Mon Sep 17 00:00:00 2001
|
|
|
+From: Florian Weimer <fweimer@redhat.com>
|
|
|
+Date: Thu, 6 Jun 2019 11:24:32 +0200
|
|
|
+Subject: [PATCH] riscv: Do not use __has_include__
|
|
|
+
|
|
|
+The user-visible preprocessor construct is called __has_include.
|
|
|
+
|
|
|
+Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
|
|
+---
|
|
|
+ sysdeps/unix/sysv/linux/riscv/flush-icache.c | 2 +-
|
|
|
+ 2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
+
|
|
|
+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>
|
|
|
+--
|
|
|
+2.25.4
|
|
|
+
|