riscv: temporary fix

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2018-11-27 20:21:08 +01:00
parent 5b2f1c25ce
commit 236a193e77
Signed by: davidlt
GPG Key ID: 7108702C938B13C1
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/sysdeps/unix/sysv/linux/riscv/flush-icache.c b/sysdeps/unix/sysv/linux/riscv/flush-icache.c
index d612ef4c..de090b18 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>
-#include <asm/syscalls.h>
+#include <unistd.h>
typedef int (*func_type) (void *, void *, unsigned long int);

View File

@ -1,6 +1,6 @@
%define glibcsrcdir glibc-2.28-44-gf44c2ca5ea
%define glibcversion 2.28
%define glibcrelease 21%{?dist}
%define glibcrelease 21.0.riscv64%{?dist}
# Pre-release tarballs are pulled in from git using a command that is
# effectively:
#
@ -160,6 +160,7 @@ Patch23: glibc-python3.patch
Patch24: glibc-with-nonshared-cflags.patch
Patch25: glibc-asflags.patch
Patch28: glibc-rh1615608.patch
Patch40: glibc-2.28-44-gf44c2ca5ea-riscv.patch
##############################################################################
# Continued list of core "glibc" package information:
@ -1903,6 +1904,9 @@ fi
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
%changelog
* Tue Nov 27 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 2.28-21.0.riscv64
- Temporary fix for RISC-V (riscv64)
* Mon Nov 26 2018 Florian Weimer <fweimer@redhat.com> - 2.28-21
- Do not use parallel make for building locales (#1652228)