[2247] in SIPB bug reports

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

uemacs patches for RS/6000

daemon@ATHENA.MIT.EDU (lwvanels@Athena.MIT.EDU)
Sun Nov 10 22:34:22 1991

From: lwvanels@Athena.MIT.EDU
Date: Sun, 10 Nov 91 22:33:55 -0500
To: bug-sipb@Athena.MIT.EDU
Reply-To: lwvanels@mit.edu

*** /mit/sipbsrc/src/micrognu/Makefile	Wed Apr  4 12:39:22 1990
--- Makefile	Sun Nov 10 20:03:24 1991
***************
*** 10,18 ****
  MANDIR=		/usr/sipb/man
  MANSECT=	1
  
! SYS	= bsd
  TTY	= termcap
! LIBS	= -ltermcap
  # CDEFS gets defines, and gets passed to lint. CFLAGS gets flags, and doesn't
  # get passed to lint.
  CDEFS	=  -DDO_METAKEY -DSTARTUP
--- 10,18 ----
  MANDIR=		/usr/sipb/man
  MANSECT=	1
  
! SYS	= sysv
  TTY	= termcap
! LIBS	= -lcurses
  # CDEFS gets defines, and gets passed to lint. CFLAGS gets flags, and doesn't
  # get passed to lint.
  CDEFS	=  -DDO_METAKEY -DSTARTUP
*** /mit/sipbsrc/src/micrognu/sys/sysv/ttyio.c	Wed Apr  8 01:51:38 1987
--- sys/sysv/ttyio.c	Sun Nov 10 22:27:32 1991
***************
*** 193,198 ****
--- 193,200 ----
  		if( !kbdpoll && fcntl( 0, F_SETFL, kbdflgs | O_NDELAY ) < 0 )
  			abort();
  		kbdqp = (1 == read( 0, &kbdq, 1 ));
+ 		if( !kbdpoll && fcntl( 0, F_SETFL, kbdflgs) < 0)
+ 		  abort();
  	}
  	return ( kbdqp );
  }
***************
*** 217,222 ****
--- 219,225 ----
  setttysize()
  {
  #ifdef	TIOCGWINSZ
+   struct winsize winsize;
  	if (ioctl(0, TIOCGWINSZ, (char *) &winsize) == 0) {
  		nrow = winsize . ws_row;
  		ncol = winsize . ws_col;
*** /mit/sipbsrc/src/micrognu/sys/sysv/fileio.c	Wed Apr  8 01:51:37 1987
--- sys/sysv/fileio.c	Sun Nov 10 22:28:39 1991
***************
*** 3,8 ****
--- 3,12 ----
   * 		System V file I/O
   */
  #include	"def.h"
+ #ifdef STARTUP
+ #include <sys/types.h>
+ #include <sys/file.h>
+ #endif
  
  # ifndef F_OK
  # define F_OK	0
***************
*** 210,217 ****
  
  
  #ifdef	STARTUP
- #include <sys/types.h>
- #include <sys/file.h>
  /*
   * find the users startup file, and return it's name. Check for
   * $HOME/.mg then for $HOME/.emacs, then give up.
--- 214,219 ----

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