summaryrefslogtreecommitdiff
path: root/extcap/ssh-base.h
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-08-05 22:20:28 +0200
committerMichael Mann <mmann78@netscape.net>2016-08-06 02:13:47 +0000
commitb626ad1f853e1e4f2e906acc7477c3924f941556 (patch)
treecd4a4c86fab24010661e3801113ad4444ed1bcaf /extcap/ssh-base.h
parent37649c4d0f0e3c87308687f9000dbe9f627594de (diff)
downloadwireshark-b626ad1f853e1e4f2e906acc7477c3924f941556.tar.gz
extcap: move defines from sshdump & ciscodump to ssh-base.
Change-Id: I51769e2427b0119aefe57ebcc08406434ffbfead Reviewed-on: https://code.wireshark.org/review/16918 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'extcap/ssh-base.h')
-rw-r--r--extcap/ssh-base.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/extcap/ssh-base.h b/extcap/ssh-base.h
index 30c4b73fbe..28a4b08acb 100644
--- a/extcap/ssh-base.h
+++ b/extcap/ssh-base.h
@@ -27,6 +27,14 @@
#include <libssh/libssh.h>
+#ifndef STDERR_FILENO
+#define STDERR_FILENO 2
+#endif
+
+#ifndef STDOUT_FILENO
+#define STDOUT_FILENO 1
+#endif
+
#define SSH_BASE_OPTIONS \
{ "remote-host", required_argument, NULL, OPT_REMOTE_HOST}, \
{ "remote-port", required_argument, NULL, OPT_REMOTE_PORT}, \