[11195] in Athena Bugs

home help back first fref pref prev next nref lref last post

patch for rlogin.c for non-POSIX systems

daemon@ATHENA.MIT.EDU (ckclark@MIT.EDU)
Mon Oct 11 22:24:47 1993

From: ckclark@MIT.EDU
Date: Mon, 11 Oct 93 22:24:36 -0400
To: bugs@MIT.EDU

deftty is a struct termios, and is only defined when rlogin.c
is compiled with POSIX defined.  If POSIX is not defined,
defltc (a struct ltchars) should be used.  I discovered
this problem trying to compile rlogin on the NeXT.

*** /source/athena/athena.lib/kerberos/appl/bsd/rlogin.c	Mon May  3 16:50:25 1993
--- rlogin.c	Mon Oct 11 22:16:22 1993
***************
*** 730,738 ****
--- 730,746 ----
  			    }
  			}
  #ifdef VSUSP
+ #ifdef POSIX
  			if ((c == deftty.c_cc[VSUSP]
+ #else
+ 			if ((c == defltc.t_suspc
+ #endif
  #ifdef VDSUSP
+ #ifdef POSIX
  			     || c == deftty.c_cc[VDSUSP]
+ #else
+ 			     || c == defltc.t_dsuspc
+ #endif
  #endif
  			     )
  #ifdef ATHENA

home help back first fref pref prev next nref lref last post