aboutsummaryrefslogtreecommitdiff
path: root/examples/samplesshd-tty.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2013-11-03 13:45:15 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2013-11-03 13:49:27 +0100
commit4f3ee2fc7e24668eee3f72c59d3766a7ba2d49c2 (patch)
treebe6fb3983d5161eef175eba9c7be42b41299506f /examples/samplesshd-tty.c
parentf565aeebfa108d03e5c782881edd2ced849a4989 (diff)
downloadlibssh-4f3ee2fc7e24668eee3f72c59d3766a7ba2d49c2.tar.gz
libssh-4f3ee2fc7e24668eee3f72c59d3766a7ba2d49c2.tar.xz
libssh-4f3ee2fc7e24668eee3f72c59d3766a7ba2d49c2.zip
Fix examples compilation on OSX (libargp)
Diffstat (limited to 'examples/samplesshd-tty.c')
-rw-r--r--examples/samplesshd-tty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/samplesshd-tty.c b/examples/samplesshd-tty.c
index 7ed70d3d..b9831855 100644
--- a/examples/samplesshd-tty.c
+++ b/examples/samplesshd-tty.c
@@ -25,7 +25,9 @@ clients must be made or how a client should react.
#include <string.h>
#include <stdio.h>
#include <poll.h>
+#ifdef HAVE_PTY_H
#include <pty.h>
+#endif
#define SSHD_USER "libssh"
#define SSHD_PASSWORD "libssh"