aboutsummaryrefslogtreecommitdiffstats
path: root/lang/egcs
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2002-11-24 18:53:47 +0800
committeredwin <edwin@FreeBSD.org>2002-11-24 18:53:47 +0800
commit37685f464dd093c4c6d40a8605fb6b8094eddf6d (patch)
tree5faf292a5d1f65de1438741ae8fab60996c6f416 /lang/egcs
parent3d12530f9bf529c33afa554d8544590e72d66ead (diff)
downloadfreebsd-ports-gnome-37685f464dd093c4c6d40a8605fb6b8094eddf6d.tar.gz
freebsd-ports-gnome-37685f464dd093c4c6d40a8605fb6b8094eddf6d.tar.zst
freebsd-ports-gnome-37685f464dd093c4c6d40a8605fb6b8094eddf6d.zip
Fix lang/egcs on -current
PR: ports/44857 Submitted by: Volker Stolz <vs@foldr.org>
Diffstat (limited to 'lang/egcs')
-rw-r--r--lang/egcs/files/patch-libiberty::strerror.c11
-rw-r--r--lang/egcs/files/patch-libiberty::strsignal.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/lang/egcs/files/patch-libiberty::strerror.c b/lang/egcs/files/patch-libiberty::strerror.c
new file mode 100644
index 000000000000..9ab1b282af58
--- /dev/null
+++ b/lang/egcs/files/patch-libiberty::strerror.c
@@ -0,0 +1,11 @@
+--- libiberty/strerror.c.orig Sun Nov 3 21:37:47 2002
++++ libiberty/strerror.c Sun Nov 3 21:38:08 2002
+@@ -462,7 +462,7 @@
+
+ #else
+
+-extern int sys_nerr;
++extern __const int sys_nerr;
+ extern char *sys_errlist[];
+
+ #endif
diff --git a/lang/egcs/files/patch-libiberty::strsignal.c b/lang/egcs/files/patch-libiberty::strsignal.c
new file mode 100644
index 000000000000..e746d2c9f45f
--- /dev/null
+++ b/lang/egcs/files/patch-libiberty::strsignal.c
@@ -0,0 +1,11 @@
+--- libiberty/strsignal.c.orig Sun Nov 3 21:38:47 2002
++++ libiberty/strsignal.c Sun Nov 3 21:39:31 2002
+@@ -244,7 +244,7 @@
+ #else
+
+ #ifdef NSIG
+-static int sys_nsig = NSIG;
++static __const int sys_nsig = NSIG;
+ #else
+ #ifdef _NSIG
+ static int sys_nsig = _NSIG;