diff options
author | AndersBroman <anders.broman@ericsson.com> | 2016-08-01 11:09:16 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-08-01 13:27:36 +0000 |
commit | 8166ab7c824ed254654b3e9f8d98331edd31bc0a (patch) | |
tree | 3077fc4eb78b21ae83dd08b6b6638f089b284373 /dumpcap.c | |
parent | 50b56c8cde22de98801c50cc5f668708a1f51a0d (diff) |
Make dumpcap build without extcap
Change-Id: I70c7bc270946d104218afc4d9c8ac888471f6524
Reviewed-on: https://code.wireshark.org/review/16821
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1687,10 +1687,11 @@ cap_pipe_open_live(char *pipename, b = cap_pipe_read(fd, ((char *)&magic)+bytes_read, sizeof magic-bytes_read, pcap_opts->from_cap_socket); +#ifdef HAVE_EXTCAP /* jump messaging, if extcap had an error, stderr will provide the correct message */ if (extcap_pipe && b <= 0) goto error; - +#endif if (b <= 0) { if (b == 0) g_snprintf(errmsg, errmsgl, "End of file on pipe magic during open."); |