From ec54cfceab9cf7ee4c57399c636d38f4cbd71ec8 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 16 Sep 2005 22:04:19 +0000 Subject: [PATCH] - Fix build on FreeBSD 4.X Approved by: mezz (maintainer) --- .../files/patch-rbgnome-canvas-path-def.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 graphics/ruby-gnomecanvas2/files/patch-rbgnome-canvas-path-def.c diff --git a/graphics/ruby-gnomecanvas2/files/patch-rbgnome-canvas-path-def.c b/graphics/ruby-gnomecanvas2/files/patch-rbgnome-canvas-path-def.c new file mode 100644 index 000000000000..f272f3b0cfa5 --- /dev/null +++ b/graphics/ruby-gnomecanvas2/files/patch-rbgnome-canvas-path-def.c @@ -0,0 +1,13 @@ +--- src/rbgnome-canvas-path-def.c.orig Sun Jul 31 12:39:54 2005 ++++ src/rbgnome-canvas-path-def.c Fri Sep 16 21:16:00 2005 +@@ -82,8 +82,9 @@ + if (NIL_P(obj)) { + path = gnome_canvas_path_def_new(); + } else if (TYPE(obj) == T_FIXNUM) { ++ gint length; + path = gnome_canvas_path_def_new_sized(NUM2INT(obj)); +- gint length = NUM2INT(obj); ++ length = NUM2INT(obj); + if (length > 0) { + path = gnome_canvas_path_def_new_sized(length); + } else {