aboutsummaryrefslogtreecommitdiff
path: root/examples/samplesshd-tty.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2013-11-03 14:09:28 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2013-11-03 14:10:04 +0100
commitebf4a03908e9d5cc728af675f4f235c315241f99 (patch)
treef5e41e5a9980c7aa08496ecd78d1577f88d44c3b /examples/samplesshd-tty.c
parent4f3ee2fc7e24668eee3f72c59d3766a7ba2d49c2 (diff)
downloadlibssh-ebf4a03908e9d5cc728af675f4f235c315241f99.tar.gz
libssh-ebf4a03908e9d5cc728af675f4f235c315241f99.tar.xz
libssh-ebf4a03908e9d5cc728af675f4f235c315241f99.zip
examples: fix forktty() warning on OSX
Diffstat (limited to 'examples/samplesshd-tty.c')
-rw-r--r--examples/samplesshd-tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/samplesshd-tty.c b/examples/samplesshd-tty.c
index b9831855..83b75648 100644
--- a/examples/samplesshd-tty.c
+++ b/examples/samplesshd-tty.c
@@ -28,7 +28,9 @@ clients must be made or how a client should react.
#ifdef HAVE_PTY_H
#include <pty.h>
#endif
-
+#ifdef HAVE_UTIL_H
+#include <util.h>
+#endif
#define SSHD_USER "libssh"
#define SSHD_PASSWORD "libssh"