may break on HPUX10 depending on how you should get the name of the pts side
of /dev/ptym/clone. I don't have an HPUX10 system
to test on.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7816
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Apr 16 13:43:43 1996 Sam Hartman <hartmans@mit.edu>
+
+ * configure.in : Don't use streams on HPUX.
+
+ * getpty.c (pty_getpty): Check /dev/ptym/clone for HPUX10, only
+ try /dev/ptmx if HAVE_STREAMS defined so we can bipass for HPUX9.
+
Sun Apr 14 00:36:33 1996 Sam Hartman <hartmans@mit.edu>
* pty-int.h: Don't include sys/wait.h here.
AC_DEFINE(PUSH_TTCOMPAT)
;;
*-*-hpux*)
- AC_DEFINE(PUSH_PTEM)
- AC_DEFINE(PUSH_LDTERM)
+ krb5_cv_has_streams=no
;;
esac
dnl
return 0;
#else /*HAVE__GETPTY*/
- *fd = open("/dev/ptmx", O_RDWR|O_NDELAY); /* Solaris*/
+ *fd = open(" /dev/ptym/clone", O_RDWR|O_NDELAY); /* HPUX*/
+#ifdef HAVE_STREAMS
+ if (*fd < 0) *fd = open("/dev/ptmx",O_RDWR|O_NDELAY); /*Solaris*/
+#endif
if (*fd < 0) *fd = open("/dev/ptc", O_RDWR|O_NDELAY); /* AIX */
if (*fd < 0) *fd = open("/dev/pty", O_RDWR|O_NDELAY); /* sysvimp */
if (*fd >= 0) {
-#ifdef HAVE_GRANTPT
+#if defined(HAVE_GRANTPT)&&defined(HAVE_STREAMS)
if (grantpt(*fd) || unlockpt(*fd)) return PTY_GETPTY_STREAMS;
#endif