ports/net/p5-Net-Pcap/files/patch-stubs.inc
Rodrigo Osorio dc3b2a0727 net/p5-Net-Pcap: Update to 0.21
Major changes in 0.19
    * Restore compilation with libpcap 1.9+
    * Too strict test for error message from libpcap
Major changes in 0.20
    * Spelling fixes
Major changes in 0.21
    * Configure: Avoid implicit ints during feature probing
    * use "our" for global variable declaration
    * Don't inherit from Exporter anymore
      This might break modules that rely on Net::Pcap isa Exporter,
      but that was never documented.

Create a patch on stubs.inc to enable fake struct pcap_rmtauth declaration
with libpcap > 1.9.0 required by the port. For the record, we don't have
remote capture support for libpcap on FreeBSD.

Also fix existing patches format to make linter happy

Full changelog: https://metacpan.org/dist/Net-Pcap/changes
2023-08-04 15:01:20 +02:00

16 lines
532 B
C++

--- stubs.inc.orig 2023-08-04 08:14:08 UTC
+++ stubs.inc
@@ -355,13 +355,11 @@
#pragma message( "Warning: the function pcap_open() is not available" )
#endif
-#if PERL_PCAP_VERSION < 1009000
struct pcap_rmtauth {
int type;
char *username;
char *password;
};
-#endif
pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err);
pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err) {