From d0b70a463c6eab7daad3fb8d7967d8c2510470f4 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Mon, 17 Feb 2014 14:37:17 -0700 Subject: [PATCH] roken: don't ignore HAVE_OPENPTY on linux openpty() is not available on all Linux distributions. Trust autoconf's determination for HAVE_OPENPTY instead of unconditionally using openpty() on all Linux. --- lib/roken/rkpty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roken/rkpty.c b/lib/roken/rkpty.c index bd955e71f..b2f021e42 100644 --- a/lib/roken/rkpty.c +++ b/lib/roken/rkpty.c @@ -99,7 +99,7 @@ open_pty(void) printf("implement open_pty\n"); exit(77); #endif -#if defined(HAVE_OPENPTY) || defined(__linux) || defined(__osf__) /* XXX */ +#if defined(HAVE_OPENPTY) || defined(__osf__) /* XXX */ if(openpty(&master, &slave, line, 0, 0) == 0) return; #endif /* HAVE_OPENPTY .... */