diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-10-11 21:26:26 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-10-11 21:26:26 +0000 |
commit | 564ca2d5e9fc3366eec476c0d27839b20eef972a (patch) | |
tree | c08767d88613cea5796e9ce8c4dab8716d9412ed /capture_session.h | |
parent | 2dcfce371bca83eae5b6ccdb76f9be4a2dd9e87a (diff) |
Try to fix Qt compilation when libpcap is disabled.
svn path=/trunk/; revision=52552
Diffstat (limited to 'capture_session.h')
-rw-r--r-- | capture_session.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/capture_session.h b/capture_session.h index cbd287314b..758e98eb98 100644 --- a/capture_session.h +++ b/capture_session.h @@ -29,6 +29,7 @@ extern "C" { #endif /* __cplusplus */ +#ifdef HAVE_LIBPCAP /* Current state of capture engine. XXX - differentiate states */ typedef enum { CAPTURE_STOPPED, /**< stopped */ @@ -57,6 +58,11 @@ typedef struct { extern void capture_session_init(capture_session *cap_session, void *cf); +#else + +typedef struct {} capture_session; + +#endif /* HAVE_LIBPCAP */ #ifdef __cplusplus } |