diff options
author | obrien <obrien@FreeBSD.org> | 2002-05-07 07:38:29 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-05-07 07:38:29 +0800 |
commit | 51c2f1b529c1e143c117e4db436f7fd27bd05f2a (patch) | |
tree | a3e05bc67897749b6c2773b04654d20d6dd4fd9e /lang/gcc295 | |
parent | b15ebae127ab6f65ae94f45ddd37de89fd6f54be (diff) | |
download | freebsd-ports-gnome-51c2f1b529c1e143c117e4db436f7fd27bd05f2a.tar.gz freebsd-ports-gnome-51c2f1b529c1e143c117e4db436f7fd27bd05f2a.tar.zst freebsd-ports-gnome-51c2f1b529c1e143c117e4db436f7fd27bd05f2a.zip |
Allow to build in -CURRENT.
Diffstat (limited to 'lang/gcc295')
-rw-r--r-- | lang/gcc295/files/patch-strerror.c | 14 | ||||
-rw-r--r-- | lang/gcc295/files/patch-strsignal.c | 56 |
2 files changed, 70 insertions, 0 deletions
diff --git a/lang/gcc295/files/patch-strerror.c b/lang/gcc295/files/patch-strerror.c new file mode 100644 index 000000000000..5061520e10cc --- /dev/null +++ b/lang/gcc295/files/patch-strerror.c @@ -0,0 +1,14 @@ +--- libiberty/strerror.c.orig Fri May 15 16:42:41 1998 ++++ libiberty/strerror.c Mon May 6 13:53:14 2002 +@@ -461,9 +461,10 @@ + static const char **sys_errlist; + + #else +- ++/* sigh... why don't they just leave this to stdio.h... + extern int sys_nerr; + extern char *sys_errlist[]; ++*/ + + #endif + diff --git a/lang/gcc295/files/patch-strsignal.c b/lang/gcc295/files/patch-strsignal.c new file mode 100644 index 000000000000..9ce126f1464e --- /dev/null +++ b/lang/gcc295/files/patch-strsignal.c @@ -0,0 +1,56 @@ +--- libiberty/strsignal.c.orig Fri May 15 16:42:42 1998 ++++ libiberty/strsignal.c Mon May 6 14:01:43 2002 +@@ -244,7 +244,7 @@ + #else + + #ifdef NSIG +-static int sys_nsig = NSIG; ++static int Gsys_nsig = NSIG; + #else + #ifdef _NSIG + static int sys_nsig = _NSIG; +@@ -330,7 +330,7 @@ + if ((sys_siglist = (const char **) malloc (nbytes)) != NULL) + { + memset (sys_siglist, 0, nbytes); +- sys_nsig = num_signal_names; ++ Gsys_nsig = num_signal_names; + for (eip = signal_table; eip -> name != NULL; eip++) + { + sys_siglist[eip -> value] = eip -> msg; +@@ -379,7 +379,7 @@ + { + init_signal_tables (); + } +- maxsize = MAX (sys_nsig, num_signal_names); ++ maxsize = MAX (Gsys_nsig, num_signal_names); + return (maxsize - 1); + } + +@@ -432,7 +432,7 @@ + + #endif + +- if ((signo < 0) || (signo >= sys_nsig)) ++ if ((signo < 0) || (signo >= Gsys_nsig)) + { + /* Out of range, just return NULL */ + msg = NULL; +@@ -591,7 +591,7 @@ + { + init_signal_tables (); + } +- if ((signo <= 0) || (signo >= sys_nsig)) ++ if ((signo <= 0) || (signo >= Gsys_nsig)) + { + fprintf (stderr, "%s: unknown signal\n", message); + } +@@ -621,7 +621,7 @@ + + maxsigno = signo_max (); + printf ("%d entries in names table.\n", num_signal_names); +- printf ("%d entries in messages table.\n", sys_nsig); ++ printf ("%d entries in messages table.\n", Gsys_nsig); + printf ("%d is max useful index.\n", maxsigno); + + /* Keep printing values until we get to the end of *both* tables, not |