$NetBSD: patch-aa,v 1.2 2006/02/17 14:43:49 joerg 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>
