summarylogtreecommitdiffstats
path: root/ruby-pcap-no-warnings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ruby-pcap-no-warnings.patch')
-rw-r--r--ruby-pcap-no-warnings.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/ruby-pcap-no-warnings.patch b/ruby-pcap-no-warnings.patch
new file mode 100644
index 000000000000..8460e5d49447
--- /dev/null
+++ b/ruby-pcap-no-warnings.patch
@@ -0,0 +1,15 @@
+--- Pcap.c.orig 2008-05-01 15:26:25.000000000 -0500
++++ Pcap.c 2008-05-01 15:27:21.000000000 -0500
+@@ -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 */