summaryrefslogtreecommitdiff
path: root/net/ngrep/files/patch5-ngrep
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-11-11 22:58:01 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-11-11 22:58:01 +0000
commit1c525aed4cca62dc099dac21c7820f1636adc310 (patch)
tree9ecf584eee2e7f87211d6a8518061b5901e92176 /net/ngrep/files/patch5-ngrep
parent. Look in ${LOCALBASE}/jdk1.4.2 for the JDK 1.4 plugin. (diff)
Unbreak build on -stable while keep it buildable on -current.
Noticed by: quite a lot of people.
Notes
Notes: svn path=/head/; revision=93758
Diffstat (limited to 'net/ngrep/files/patch5-ngrep')
-rw-r--r--net/ngrep/files/patch5-ngrep19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/ngrep/files/patch5-ngrep b/net/ngrep/files/patch5-ngrep
new file mode 100644
index 000000000000..44c4a094ee01
--- /dev/null
+++ b/net/ngrep/files/patch5-ngrep
@@ -0,0 +1,19 @@
+--- ngrep.c.orig Mon Dec 31 14:11:00 2001
++++ ngrep.c Sat Nov 8 15:50:53 2003
+@@ -62,6 +62,7 @@
+
+ #include "ngrep.h"
+
++extern FILE *pcapyyin;
+
+ static char rcsver[] = "$Revision: 1.23 $";
+
+@@ -232,7 +233,7 @@
+ filter = get_filter(&argv[optind-1]);
+
+ #ifdef NEED_RESTART
+- PCAP_RESTART();
++ PCAP_RESTART(pcapyyin);
+ #endif
+ if (pcap_compile(pd, &pcapfilter, filter, 0, mask.s_addr)) {
+ pcap_perror(pd, "pcap compile");