Ultrix doesn't have a fully functional POSIX termios
authorRichard Basch <probe@mit.edu>
Mon, 2 Jan 1995 18:33:47 +0000 (18:33 +0000)
committerRichard Basch <probe@mit.edu>
Mon, 2 Jan 1995 18:33:47 +0000 (18:33 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4787 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/krlogind.c

index 3c289bc1c881a4030bfb8b48588aa7e11d5bef94..493d8381aaf10c522ac18556004c147359164b11 100644 (file)
@@ -149,7 +149,7 @@ char copyright[] =
 #include <sys/stropts.h>
 #endif
 
-#ifdef POSIX_TERMIOS
+#if defined(POSIX_TERMIOS) && !defined(ultrix)
 #include <termios.h>
 #else
 #include <sgtty.h>
@@ -619,7 +619,7 @@ void doit(f, fromp)
     if (pid < 0)
       fatalperror(f, "");
     if (pid == 0) {
-#ifdef POSIX_TERMIOS
+#if defined(POSIX_TERMIOS) && !defined(ultrix)
        struct termios new_termio;
 #else
        struct sgttyb b;
@@ -663,7 +663,7 @@ void doit(f, fromp)
        ioctl(0, TIOCSPGRP, &pid);
 #endif
 
-#ifdef POSIX_TERMIOS
+#if defined(POSIX_TERMIOS) && !defined(ultrix)
        tcsetpgrp(0, pid);
        tcgetattr(0,&new_termio);
        new_termio.c_lflag &=  ~(ICANON|ECHO|ISIG);