summaryrefslogtreecommitdiff
path: root/net/unison-devel/patches/patch-ac
blob: fc7ce7a6e7ce9be8937fe0a48bfe52a58e4902ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ac,v 1.8 2007/04/13 14:54:41 tonio Exp $

--- pty.c.orig	Mon Apr  2 05:03:20 2007
+++ pty.c
@@ -15,12 +15,13 @@ extern void uerror (char * cmdname, valu
 #define HAS_OPENPTY 1
 #endif
 
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__NetBSD__)
 #include <util.h>
 #define HAS_OPENPTY 1
 #endif
 
 #ifdef __FreeBSD__
+#include <sys/types.h>
 #include <libutil.h>
 #define HAS_OPENPTY 1
 #endif