summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2007-08-04 19:37:18 +0000
committerHans de Graaff <graaff@gentoo.org>2007-08-04 19:37:18 +0000
commit973080cc83d71ac60ee53ac4752f4c9d2a3b8551 (patch)
tree6800e5d1bb11e086b99041b5ff54cb501b8b7b22 /dev-ruby/ruby-pcap/files
parentwhitespace (diff)
downloadhistorical-973080cc83d71ac60ee53ac4752f4c9d2a3b8551.tar.gz
historical-973080cc83d71ac60ee53ac4752f4c9d2a3b8551.tar.bz2
historical-973080cc83d71ac60ee53ac4752f4c9d2a3b8551.zip
Add patch from bug 186838 to fix compatibility with newer ruby versions.
Package-Manager: portage-2.1.2.11
Diffstat (limited to 'dev-ruby/ruby-pcap/files')
-rw-r--r--dev-ruby/ruby-pcap/files/ruby-pcap-0.6-fixnum.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-ruby/ruby-pcap/files/ruby-pcap-0.6-fixnum.patch b/dev-ruby/ruby-pcap/files/ruby-pcap-0.6-fixnum.patch
new file mode 100644
index 000000000000..406eed25a7ea
--- /dev/null
+++ b/dev-ruby/ruby-pcap/files/ruby-pcap-0.6-fixnum.patch
@@ -0,0 +1,15 @@
+--- Pcap.c.orig 2007-08-04 21:32:58.837581638 +0200
++++ Pcap.c 2007-08-04 21:33:36.523548516 +0200
+@@ -782,9 +782,9 @@
+ /* define class PcapStat */
+ cPcapStat = rb_funcall(rb_cStruct, rb_intern("new"), 4,
+ Qnil,
+- INT2NUM(rb_intern("recv")),
+- INT2NUM(rb_intern("drop")),
+- INT2NUM(rb_intern("ifdrop")));
++ ID2SYM(rb_intern("recv")),
++ ID2SYM(rb_intern("drop")),
++ ID2SYM(rb_intern("ifdrop")));
+ rb_define_const(mPcap, "Stat", cPcapStat);
+
+ /* define exception classes */