aboutsummaryrefslogtreecommitdiff
path: root/lang/sr/files/patch-rts__main.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/sr/files/patch-rts__main.c')
-rw-r--r--lang/sr/files/patch-rts__main.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/lang/sr/files/patch-rts__main.c b/lang/sr/files/patch-rts__main.c
new file mode 100644
index 000000000000..d33a6092a3ae
--- /dev/null
+++ b/lang/sr/files/patch-rts__main.c
@@ -0,0 +1,34 @@
+--- rts/main.c.orig Sat Dec 13 19:38:54 2003
++++ rts/main.c Sat Dec 13 19:42:06 2003
+@@ -16,7 +16,7 @@
+ #endif
+
+
+-#include <varargs.h>
++#include <stdarg.h>
+
+ #define RUNERR(s,n,m) {n, m},
+ static struct err {
+@@ -311,20 +311,17 @@
+ */
+ /*VARARGS*/
+ int
+-sr_runerr (va_alist)
+-va_dcl
++sr_runerr (char *locn, ...)
+ {
+ va_list ap;
+ char c, *f, *o;
+- char *locn;
+ int errnum;
+ struct err *ep;
+ char buf[200];
+ Dim *d;
+ String *s;
+
+- va_start (ap);
+- locn = va_arg (ap, char *);
++ va_start (ap, locn);
+ errnum = va_arg (ap, int);
+
+