diff options
author | rillig <rillig@pkgsrc.org> | 2007-05-01 11:07:45 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-05-01 11:07:45 +0000 |
commit | 24cd28df70bd3ad94bc3a264363b2db22712ad11 (patch) | |
tree | a1ec693d9e6709b0cb7ab667e660b5f00a69fb92 /lang/js/patches | |
parent | 02344c6ebaca0ad087223e4f4e350cb46249f896 (diff) | |
download | pkgsrc-24cd28df70bd3ad94bc3a264363b2db22712ad11.tar.gz |
Fixed gcc4 error messages. Patch provided by Aleksey Cheusov in private
mail.
Diffstat (limited to 'lang/js/patches')
-rw-r--r-- | lang/js/patches/patch-aa | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/js/patches/patch-aa b/lang/js/patches/patch-aa new file mode 100644 index 00000000000..d3c295d9e81 --- /dev/null +++ b/lang/js/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1 2007/05/01 11:07:45 rillig Exp $ + +--- src/iostream.c.orig 1998-11-25 10:06:10.000000000 +0200 ++++ src/iostream.c +@@ -233,7 +233,7 @@ js_iostream_read (JSIOStream *stream, vo + + stream->bufpos += got; + size -= got; +- (unsigned char *) ptr += got; ++ ptr = (unsigned char *) ptr + got; + total += got; + } + else +@@ -290,7 +290,7 @@ js_iostream_write (JSIOStream *stream, v + stream->data_in_buf += space; + total += space; + size -= space; +- (unsigned char *) ptr += space; ++ ptr = (unsigned char *) ptr + space; + + /* Now the buffer contains buffered write data. */ + stream->writep = 1; |