Subject: kbd.c patch
To: None <port-sparc@sun-lamp.cs.berkeley.edu>
From: Yeng-Chee Su <yenchee@netbsd.csie.nctu.edu.tw>
List: port-sparc
Date: 02/27/1994 22:14:57
  In order to run Sun compiled X, there is new null ioctl control function
added in kbd.c called KIOCLAYOUT.  However, it doesn't set the return value
properly.  Here is the patch.


*** kbd.c.old	Sun Feb 27 19:03:45 1994
--- kbd.c	Sun Feb 27 22:10:29 1994
***************
*** 586,591 ****
--- 586,592 ----
  		return (0);
  
  	case KIOCLAYOUT:
+ 		*data = 0;
  		return (0);
  
  	case FIONBIO:		/* we will remove this someday (soon???) */

------------------------------------------------------------------------------