diff -up ./Makefile.PL.tv ./Makefile.PL
old
|
new
|
REASON |
106 | 106 | # We also store the list of available functions in a file for skipping the |
107 | 107 | # corresponding tests. |
108 | 108 | my @funcs = have_functions(find_functions()); |
109 | | $options{DEFINE} .= cpp_defines(@funcs); |
| 109 | $options{DEFINE} .= cpp_defines(@funcs). "-DHAVE_PCAP_SETSAMPLING"; |
110 | 110 | open(FUNCS, '>funcs.txt') or warn "warning: can't write 'funcs.txt': $!\n"; |
111 | 111 | print FUNCS join("\n", @funcs), "\n"; |
112 | 112 | close(FUNCS); |
diff -up ./Pcap.xs.tv ./Pcap.xs
diff -up ./stubs.inc.tv ./stubs.inc
old
|
new
|
int pcap_parsesrcstr(const char *source, |
354 | 354 | #ifdef _MSC_VER |
355 | 355 | #pragma message( "Warning: the function pcap_open() is not available" ) |
356 | 356 | #endif |
357 | | struct pcap_rmtauth { |
358 | | int type; |
359 | | char *username; |
360 | | char *password; |
361 | | }; |
362 | 357 | |
363 | 358 | pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err); |
364 | 359 | pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err) { |
… |
… |
HANDLE pcap_getevent(pcap_t *p) { |
511 | 511 | #ifdef _MSC_VER |
512 | 512 | #pragma message( "Warning: the function pcap_setsampling() is not available" ) |
513 | 513 | #endif |
| 514 | #if 0 |
514 | 515 | struct pcap_samp { |
515 | 516 | int method; |
516 | 517 | int value; |
… |
… |
struct pcap_samp *pcap_setsampling(pcap_ |
522 | 523 | return NULL; |
523 | 524 | } |
524 | 525 | #endif |
| 526 | #endif |
525 | 527 | |
526 | 528 | |
527 | 529 | /* |