summaryrefslogtreecommitdiff
path: root/security/libssh/patches/patch-aa
blob: 2c2a56f832357fe9f4cc3647bf483f82c8c04594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-aa,v 1.3 2007/02/25 00:57:54 yyamano Exp $

--- sample.c.orig	2005-03-05 04:54:59.000000000 +0900
+++ sample.c
@@ -20,7 +20,14 @@ clients must be made or how a client sho
 
 #include <sys/select.h>
 #include <sys/time.h>
+#if defined(__NetBSD__) || defined(__APPLE__)
+#include <sys/types.h>
+#include <util.h>		/* openpty() on NetBSD and Darwin */
+#elif defined(__DragonFly__)
+#include <libutil.h>
+#else
 #include <pty.h>
+#endif
 #include <signal.h>
 #include <errno.h>
 #include <libssh/libssh.h>