ruby16-shim-ruby18 broken on stable (patch)

Pav Lucistnik pav at
Fri Oct 31 16:05:06 PST 2003


I can't build ruby16-shim-ruby18 1.8.1 preview2, commited earlier today,
on my -STABLE box. 

Here is an error output:

cc -fPIC -O -pipe -march=pentium-mmx -fPIC -I.
-DHAVE_FIONREAD -DFIONREAD_HEADER="<sys/ioctl.h>" -c -o wait.o wait.c
wait.c: In function `io_wait':
wait.c:74: storage size of `timerec' isn't known
wait.c:83: invalid use of undefined type `struct timeval'
*** Error code 1

And here is an quick patch:

--- shim/ruby16/ext/io/wait/wait.c.orig	Sat Nov  1 01:00:12 2003
+++ shim/ruby16/ext/io/wait/wait.c	Sat Nov  1 00:59:14 2003
@@ -16,6 +16,7 @@
 #include <sys/types.h>
+#include <sys/time.h>
 static VALUE io_ready_p _((VALUE io));
 static VALUE io_wait _((int argc, VALUE *argv, VALUE io));

Pav Lucistnik <pav at>
What do we know about love? Love is like a pear. Pear is sweet and have
a specific shape. Try to exactly define the shape of a pear.
  -- Marigold: 50 Years Of Poetry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?iso-8859-2?Q?digit=E1ln=EC?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?=
Url :

More information about the freebsd-ports mailing list