aboutsummaryrefslogtreecommitdiffstats
path: root/capture.h
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-07 10:19:33 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-07 10:19:33 +0000
commit190fb3ee1c53ccaefa016e2f371355cbe7335315 (patch)
treeffbd3755463443abb63104664cdd1ddf643ebed2 /capture.h
parent8d5037de6c2785034384204ffe02ee9a20811e33 (diff)
- pcap.h needs to be included before capture.h
- As capture.h is empty without libpcap defined, only include it in that case and don't protect the file internally against libpcap any more. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13648 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture.h')
-rw-r--r--capture.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/capture.h b/capture.h
index 8c5f017394..76e60ecf9f 100644
--- a/capture.h
+++ b/capture.h
@@ -22,6 +22,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+/* This file should only be included if libpcap is present */
+
#ifndef __CAPTURE_H__
#define __CAPTURE_H__
@@ -29,8 +31,6 @@
* Capture related things.
*/
-#ifdef HAVE_LIBPCAP
-
/** Name we give to the child process when doing a "-S" capture. */
#define CHILD_NAME "ethereal-capture"
@@ -156,6 +156,4 @@ extern void capture_info_destroy(
capture_info *cinfo);
-#endif /* HAVE_LIBPCAP */
-
#endif /* capture.h */