From 0eaf1e27649107ca6c3bd7e66352b5c621199a34 Mon Sep 17 00:00:00 2001 From: Stefan Walter Date: Thu, 8 Jan 2009 17:18:48 +0000 Subject: Add a fix for warnings emitted every time the module is loaded. PR: 123313 Submitted by: David Duchscher --- net/ruby-pcap/Makefile | 2 +- net/ruby-pcap/files/patch-Pcap.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 net/ruby-pcap/files/patch-Pcap.c (limited to 'net') diff --git a/net/ruby-pcap/Makefile b/net/ruby-pcap/Makefile index 87fd1c355ac0..946dc59cd859 100644 --- a/net/ruby-pcap/Makefile +++ b/net/ruby-pcap/Makefile @@ -7,7 +7,7 @@ PORTNAME= pcap PORTVERSION= 0.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net ruby MASTER_SITES= http://www.goto.info.waseda.ac.jp/~fukusima/ruby/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} diff --git a/net/ruby-pcap/files/patch-Pcap.c b/net/ruby-pcap/files/patch-Pcap.c new file mode 100644 index 000000000000..8460e5d49447 --- /dev/null +++ b/net/ruby-pcap/files/patch-Pcap.c @@ -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 */ -- cgit