$NetBSD: patch-subshell,v 1.1 2006/02/12 14:07:28 rillig Exp $

--- src/subshell.c.orig	2004-08-30 10:58:16.000000000 +0200
+++ src/subshell.c	2006-02-12 13:49:31.000000000 +0100
@@ -75,6 +75,10 @@ extern char *ptsname (int);
 #   define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 #endif
 
+#ifdef BSD
+#undef HAVE_GRANTPT
+#endif
+
 #ifdef HAVE_GRANTPT
 #   include <stropts.h> /* For I_PUSH			      */
 #else
