mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
Make compilable on 4-stable.
Reported by: kris
This commit is contained in:
parent
6b37725d7c
commit
ed1b702f9b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127078
15
devel/gonzui/files/patch-langscan-c-c.c
Normal file
15
devel/gonzui/files/patch-langscan-c-c.c
Normal file
@ -0,0 +1,15 @@
|
||||
--- langscan/c/c.c.orig Wed Nov 10 18:18:20 2004
|
||||
+++ langscan/c/c.c Sat Jan 22 15:06:38 2005
|
||||
@@ -29,11 +29,11 @@
|
||||
|
||||
static size_t user_read_io(void **user_data_p, char *buf, size_t maxlen)
|
||||
{
|
||||
+ size_t len = maxlen;
|
||||
VALUE user_io = (VALUE)*user_data_p;
|
||||
VALUE str = rb_funcall(user_io, id_read, 1, INT2NUM(maxlen));
|
||||
if (NIL_P(str))
|
||||
return 0;
|
||||
- size_t len = maxlen;
|
||||
StringValue(str);
|
||||
if (RSTRING(str)->len < len)
|
||||
len = RSTRING(str)->len;
|
15
devel/gonzui/files/patch-langscan-java-java.c
Normal file
15
devel/gonzui/files/patch-langscan-java-java.c
Normal file
@ -0,0 +1,15 @@
|
||||
--- langscan/java/java.c.orig Fri Nov 26 03:08:01 2004
|
||||
+++ langscan/java/java.c Sat Jan 22 15:06:38 2005
|
||||
@@ -29,11 +29,11 @@
|
||||
|
||||
static size_t user_read_io(void **user_data_p, char *buf, size_t maxlen)
|
||||
{
|
||||
+ size_t len = maxlen;
|
||||
VALUE user_io = (VALUE)*user_data_p;
|
||||
VALUE str = rb_funcall(user_io, id_read, 1, INT2NUM(maxlen));
|
||||
if (NIL_P(str))
|
||||
return 0;
|
||||
- size_t len = maxlen;
|
||||
StringValue(str);
|
||||
if (RSTRING(str)->len < len)
|
||||
len = RSTRING(str)->len;
|
Loading…
Reference in New Issue
Block a user