summaryrefslogtreecommitdiff
path: root/lang/sr/patches
diff options
context:
space:
mode:
Diffstat (limited to 'lang/sr/patches')
-rw-r--r--lang/sr/patches/patch-bl16
-rw-r--r--lang/sr/patches/patch-bm38
-rw-r--r--lang/sr/patches/patch-bn12
-rw-r--r--lang/sr/patches/patch-bo12
-rw-r--r--lang/sr/patches/patch-bp12
5 files changed, 90 insertions, 0 deletions
diff --git a/lang/sr/patches/patch-bl b/lang/sr/patches/patch-bl
new file mode 100644
index 00000000000..e4d3ab30472
--- /dev/null
+++ b/lang/sr/patches/patch-bl
@@ -0,0 +1,16 @@
+$NetBSD: patch-bl,v 1.1 2010/03/03 15:24:19 is Exp $
+
+--- gen.h.orig 1999-07-28 22:42:21.000000000 +0200
++++ gen.h
+@@ -43,8 +43,9 @@ void exit();
+ double fmod(); /* not in Sequent <math.h> */
+
+ #if defined(__STDC__) || defined(__sgi) || defined(_AIX) || defined(__alpha)
+-void *malloc(), *realloc();
+-void *memset(), *memcpy();
++#include <unistd.h>
++#include <string.h>
++#include <stdlib.h>
+ #else
+ char *malloc(), *realloc();
+ char *memset(), *memcpy();
diff --git a/lang/sr/patches/patch-bm b/lang/sr/patches/patch-bm
new file mode 100644
index 00000000000..2cc38ee7531
--- /dev/null
+++ b/lang/sr/patches/patch-bm
@@ -0,0 +1,38 @@
+$NetBSD: patch-bm,v 1.1 2010/03/03 15:24:19 is Exp $
+
+--- sr/main.c.orig 2010-03-03 15:16:17.000000000 +0100
++++ sr/main.c
+@@ -11,7 +11,7 @@ static void dofile PARAMS ((char *filena
+ static int concrete PARAMS ((Nodeptr e));
+ static void genmake PARAMS ((Nodeptr e));
+ static void gmake PARAMS ((Nodeptr e, char *rtype, char *half));
+-static void link PARAMS ((char *files[]));
++static void mylink PARAMS ((char *files[]));
+
+
+
+@@ -101,7 +101,7 @@ char *argv[];
+ } else {
+ if (!option_q)
+ fprintf (stderr, "linking:\n");
+- link (argv + optind); /* exec srl to build executable file */
++ mylink (argv + optind); /* exec srl to build executable file */
+ /*NOTREACHED*/
+ }
+ }
+@@ -348,13 +348,13 @@ char *dir, *fname;
+
+
+
+-/* link (files) -- run srl to link the components we have compiled
++/* mylink (files) -- run srl to link the components we have compiled
+ *
+ * "files" is portion of orig argv containing file names (including SR files).
+ */
+
+ static void
+-link (files)
++mylink (files)
+ char *files[];
+ {
+ char path [MAX_PATH];
diff --git a/lang/sr/patches/patch-bn b/lang/sr/patches/patch-bn
new file mode 100644
index 00000000000..26c8018b257
--- /dev/null
+++ b/lang/sr/patches/patch-bn
@@ -0,0 +1,12 @@
+$NetBSD: patch-bn,v 1.1 2010/03/03 15:24:20 is Exp $
+
+--- srtex/print.c.orig 1999-08-03 19:48:22.000000000 +0200
++++ srtex/print.c
+@@ -3,6 +3,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "../config.h"
+ char *yyref ();
+
diff --git a/lang/sr/patches/patch-bo b/lang/sr/patches/patch-bo
new file mode 100644
index 00000000000..e08a49d894b
--- /dev/null
+++ b/lang/sr/patches/patch-bo
@@ -0,0 +1,12 @@
+$NetBSD: patch-bo,v 1.1 2010/03/03 15:24:20 is Exp $
+
+--- srm/fill.c.orig 1999-07-28 22:42:26.000000000 +0200
++++ srm/fill.c
+@@ -1,6 +1,7 @@
+ /* fill.c */
+
+ #include <stdio.h>
++#include <string.h>
+ #include "../config.h"
+ #include "srm.h"
+
diff --git a/lang/sr/patches/patch-bp b/lang/sr/patches/patch-bp
new file mode 100644
index 00000000000..060b8ef6c68
--- /dev/null
+++ b/lang/sr/patches/patch-bp
@@ -0,0 +1,12 @@
+$NetBSD: patch-bp,v 1.1 2010/03/03 15:24:20 is Exp $
+
+--- examples/other/mbrot/bkend.c.orig 1999-07-31 01:29:27.000000000 +0200
++++ examples/other/mbrot/bkend.c
+@@ -39,6 +39,7 @@ char *path;
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+ filter(io,name,argv)
+ int io;