URL
https://opencores.org/ocsvn/hf-risc/hf-risc/trunk
Subversion Repositories hf-risc
[/] [hf-risc/] [trunk/] [tools/] [riscv-gnu-toolchain-master/] [patches/] [glibc] - Rev 13
Compare with Previous | Blame | View Log
--- original-glibc/scripts/config.sub
+++ glibc/scripts/config.sub
@@ -302,6 +302,7 @@ case $basic_machine in
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle \
| pyramid \
+ | riscv \
| rl78 | rx \
| score \
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
--- original-glibc/sunrpc/rpc_main.c
+++ glibc/sunrpc/rpc_main.c
@@ -38,7 +38,9 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#if !defined(__FreeBSD__) && !defined(__APPLE__)
#include <libintl.h>
+#endif
#include <locale.h>
#include <ctype.h>
#include <sys/types.h>
@@ -54,6 +56,10 @@
#include "../version.h"
#define PACKAGE _libc_intl_domainname
+#ifdef __FreeBSD__
+#define stat64 stat
+#endif
+
#define EXTEND 1 /* alias for TRUE */
#define DONT_EXTEND 0 /* alias for FALSE */
--- original-glibc/sunrpc/rpc_scan.c
+++ glibc/sunrpc/rpc_scan.c
@@ -37,7 +37,9 @@
#include <stdio.h>
#include <ctype.h>
#include <string.h>
+#ifndef __FreeBSD__
#include <libintl.h>
+#endif
#include "rpc_scan.h"
#include "rpc_parse.h"
#include "rpc_util.h"