pcapapi.patch 557 B

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