4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change
on this file since 747c501 was
f2f47a7,
checked in by Perry Lorier <perry@…>, 15 years ago
|
Standardise the placement of config.h
|
-
Property mode set to
100644
|
File size:
333 bytes
|
Line | |
---|
1 | #include "config.h" |
---|
2 | |
---|
3 | #ifndef HAVE_PCAP_DUMP_FLUSH |
---|
4 | #include <stdio.h> |
---|
5 | #include <pcap.h> |
---|
6 | #if HAVE_PCAP_INT_H |
---|
7 | # include <pcap-int.h> |
---|
8 | #else |
---|
9 | //# error "Need pcap-int.h for declaration of pcap_t" |
---|
10 | #endif |
---|
11 | #include <string.h> |
---|
12 | |
---|
13 | int pcap_dump_flush(pcap_dumper_t *p) { |
---|
14 | if (fflush((FILE *)p) == EOF) |
---|
15 | return (-1); |
---|
16 | else |
---|
17 | return (0); |
---|
18 | } |
---|
19 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.