slackbuilds_ponce/perl/perl-Net-Pcap/pcapapi.patch
Willy Sudiarto Raharjo ada1e5b198
perl/perl-Net-Pcap: Updated for version 0.18.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2019-07-24 14:07:38 +07:00

11 lines
557 B
Diff

diff -up Net-Pcap-0.18/Makefile.PL.orig Net-Pcap-0.18/Makefile.PL
--- Net-Pcap-0.18/Makefile.PL.orig 2019-06-13 00:50:15.000000000 -0600
+++ Net-Pcap-0.18/Makefile.PL 2019-06-13 01:00:15.000000000 -0600
@@ -107,6 +107,7 @@ REASON
# corresponding tests.
my @funcs = have_functions(find_functions());
$options{DEFINE} .= cpp_defines(@funcs);
+$options{DEFINE} .= " -DPCAP_API=\"\" -DHAVE_PCAP_OPEN -DHAVE_PCAP_SETSAMPLING";
open(FUNCS, '>funcs.txt') or warn "warning: can't write 'funcs.txt': $!\n";
print FUNCS join("\n", @funcs), "\n";
close(FUNCS);