diff --git a/scsh/tty1.c b/scsh/tty1.c index 0b34c85..f2be7d6 100644 --- a/scsh/tty1.c +++ b/scsh/tty1.c @@ -99,9 +99,7 @@ int open_ctty(const char *ttyname, int flags) { int fd = open(ttyname, flags); -/* The ifdef is tricked by HP-UX, so I'll hardwire it out for now. -Olin */ -#if 0 -#if defined(TIOCSCTTY) && !defined(CIBAUD) +#if defined(TIOCSCTTY) && !defined(CIBAUD) && !defined(__hpux) fprintf(stderr, "Doing the ioctl.\n"); /* 4.3+BSD way to acquire control tty. !CIBAUD rules out SunOS. ** This code stolen from Steven's *Advanced Prog. in the Unix Env.* @@ -112,7 +110,6 @@ int open_ctty(const char *ttyname, int flags) errno = e; return -1; } -#endif #endif return fd; }