[comp.emacs] Microemacs 3.10 - patch for unix.c

rupley@arizona.edu (John Rupley) (06/09/89)

context diff patch for unix.c:

1) non-trivial typo in typahead(): 

	kbdq -> &kbdq, in read()

2) two #includes for USG option, for sys/types.h and sys/stat.h


John Rupley
    uucp: ..{uunet | ucbvax | cmcl2 | hao!ncar!noao}!arizona!rupley!local
    internet: rupley!local@megaron.arizona.edu
    (H) 30 Calle Belleza, Tucson AZ  85716 - (602) 325-4533
    (O) Dept. Biochemistry, Univ. Arizona, Tucson AZ 85721 - (602) 621-3929

--------------------------------------------------------------------------
*** unix.c	Tue May 23 15:15:39 1989
--- ../unix.c	Wed May 24 02:13:53 1989
***************
*** 15,20
  #include	<signal.h>
  #include	<termio.h>
  #include	<fcntl.h>
  #include	<ndir.h>
  int kbdflgs;			/* saved keyboard fd flags	*/
  int kbdpoll;			/* in O_NDELAY mode			*/

--- 15,22 -----
  #include	<signal.h>
  #include	<termio.h>
  #include	<fcntl.h>
+ #include	<sys/types.h>
+ #include	<sys/stat.h>
  #include	<ndir.h>
  int kbdflgs;			/* saved keyboard fd flags	*/
  int kbdpoll;			/* in O_NDELAY mode			*/
***************
*** 217,223
  		if (fcntl(0, F_SETFL, kbdflgs | O_NDELAY) < 0 && kbdpoll)
  			return(FALSE);
  		kbdpoll = TRUE;
! 		kbdqp = (1 == read(0, kbdq, 1));
  	}
  	return(kbdqp);
  #endif

--- 219,225 -----
  		if (fcntl(0, F_SETFL, kbdflgs | O_NDELAY) < 0 && kbdpoll)
  			return(FALSE);
  		kbdpoll = TRUE;
! 		kbdqp = (1 == read(0, &kbdq, 1));
  	}
  	return(kbdqp);
  #endif