diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-06-20 14:38:39 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-06-20 21:39:08 +0000 |
commit | cc4710ac5fde8f7e524637e41185eacd1aafabcd (patch) | |
tree | 859d3f676fde9617fbe0ff150f6d66d300dc94d2 /ui/qt | |
parent | 5537c53f379b5404f05d01541aa9386f87805072 (diff) |
Also define LONGOPT_CAPTURE_COMMON as nothing if we don't have pcap.
While we're at it, simplify the #ifdefs and #defines in capture_opts.h -
don't do the same tests twice.
Change-Id: I2079167f31789470ef77120054d769d5914745e3
Reviewed-on: https://code.wireshark.org/review/2496
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp index 4a0a6e85aa..fd363094ec 100644 --- a/ui/qt/main.cpp +++ b/ui/qt/main.cpp @@ -500,6 +500,7 @@ int main(int argc, char *argv[]) // XXX Should the remaining code be in WiresharkApplcation::WiresharkApplication? #ifndef HAVE_LIBPCAP +#define LONGOPT_CAPTURE_COMMON #define OPTSTRING_CAPTURE_COMMON "" #endif /* HAVE_LIBPCAP */ |