summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoris <is@pkgsrc.org>2005-03-02 14:07:39 +0000
committeris <is@pkgsrc.org>2005-03-02 14:07:39 +0000
commita006cd939bf628cb9a0904199efce802303bf065 (patch)
tree28783539273fdc2cb402c79998478cf15485f6a1 /lang
parent65798d485b2c85cb5bf368e8c25336c47c04b575 (diff)
downloadpkgsrc-a006cd939bf628cb9a0904199efce802303bf065.tar.gz
Not all world is a VAX.
Diffstat (limited to 'lang')
-rw-r--r--lang/sr/patches/patch-ba32
1 files changed, 32 insertions, 0 deletions
diff --git a/lang/sr/patches/patch-ba b/lang/sr/patches/patch-ba
new file mode 100644
index 00000000000..7ed7070cdab
--- /dev/null
+++ b/lang/sr/patches/patch-ba
@@ -0,0 +1,32 @@
+$NetBSD: patch-ba,v 1.1 2005/03/02 14:07:39 is Exp $
+
+--- rts/misc.c.orig 2005-03-02 13:56:52.000000000 +0000
++++ rts/misc.c
+@@ -1,6 +1,7 @@
+ /* misc.c -- miscellaneous routines supporting the generated code */
+
+ #include <stdarg.h>
++#include <stdint.h>
+ #include "rts.h"
+
+
+@@ -24,7 +25,7 @@ sr_cat (String *slist, ...)
+ n = 0; /* total the string lengths */
+ va_start (ap, slist);
+ for (s = slist; s != NULL; s = va_arg (ap, String *))
+- if ((int) s & 1)
++ if ((intptr_t) s & 1)
+ n++; /* char argument */
+ else
+ n += s->length; /* String argument */
+@@ -37,8 +38,8 @@ sr_cat (String *slist, ...)
+ p = DATA (t);
+ va_start (ap, slist);
+ for (s = slist; s != NULL; s = va_arg (ap, String *))
+- if ((int) s & 1) { /* for each input string: */
+- *p++ = (int) s >> 2; /* copy in char argument */
++ if ((intptr_t) s & 1) { /* for each input string: */
++ *p++ = (intptr_t) s >> 2; /* copy in char argument */
+ } else {
+ memcpy (p, DATA (s), s->length); /* copy into new string */
+ p += s->length; /* advance pointer*/