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.
This commit is contained in:
Ken Dreyer
2014-02-17 14:37:17 -07:00
parent ea446ec1fd
commit d0b70a463c

View File

@@ -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 .... */