diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-04-25 21:11:48 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-04-25 21:11:48 +0200 |
commit | 8250a3d8c7529d5322a67799d019643508f90e9a (patch) | |
tree | 914cf8a40cb7e372c50ea642b7893c9c752771a6 | |
parent | d23409fec0e262a2f99b04df61b5b05d40aca45a (diff) |
fixed another build error for print_pcap_devices() if HAVE_PCAP undefined
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r-- | src/ptunnel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ptunnel.c b/src/ptunnel.c index 5089eca..d70edce 100644 --- a/src/ptunnel.c +++ b/src/ptunnel.c @@ -165,8 +165,13 @@ int main(int argc, char *argv[]) { pt_random(); if (opts.list_pcap_devices) { +#ifdef HAVE_PCAP print_pcap_devices(); return 0; +#else + pt_log(kLog_error, "Pcap not available!\n"); + return 1; +#endif } #ifdef HAVE_PCAP |