From dbfc1f7400708e5fac302149ee198caa60ef620e Mon Sep 17 00:00:00 2001 From: Andrey Slusar Date: Tue, 2 May 2006 12:15:24 +0000 Subject: Wrong type of integer argument to ioctl(2) cause ruby18 to produce lots of sign-extension noises through console / kernel log on FreeBSD/amd64. PR: ports/94088 Submitted by: ariff --- lang/ruby18/files/patch-io.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lang/ruby18/files/patch-io.c (limited to 'lang/ruby18/files/patch-io.c') diff --git a/lang/ruby18/files/patch-io.c b/lang/ruby18/files/patch-io.c new file mode 100644 index 000000000000..2d26a4634ec0 --- /dev/null +++ b/lang/ruby18/files/patch-io.c @@ -0,0 +1,22 @@ +--- io.c.orig Thu Mar 2 22:15:47 2006 ++++ io.c Thu Mar 2 22:16:58 2006 +@@ -4682,8 +4682,9 @@ + #if !defined(MSDOS) && !defined(__human68k__) + static int + io_cntl(fd, cmd, narg, io_p) +- int fd, cmd, io_p; ++ int fd, io_p; + long narg; ++ unsigned long cmd; + { + int retval; + +@@ -4713,7 +4714,7 @@ + int io_p; + { + #if !defined(MSDOS) && !defined(__human68k__) +- int cmd = NUM2ULONG(req); ++ unsigned long cmd = NUM2ULONG(req); + OpenFile *fptr; + long len = 0; + long narg = 0; -- cgit v1.2.3