Subject: port-i386/4873: i386/isa/pcvt/pcvt_hdr.h misses defined() arround XSERVER
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 01/22/1998 22:30:19
>Number:         4873
>Category:       port-i386
>Synopsis:       i386/isa/pcvt/pcvt_hdr.h misses defined() arround XSERVER
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 22 13:35:01 1998
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
	
>Release:        <NetBSD-current source date> NetBSD 1.3B 22.01.1998
>Environment:
	
System: NetBSD cyberlap 1.3B NetBSD 1.3B (CYBERLAP) #3: Wed Jan 21 18:36:12 MET 1998 frueauf@cyberlap:/usr/src/sys/arch/i386/compile/CYBERLAP i386


>Description:
	
i386/isa/pcvt/pcvt_hdr.h misses defined() arround XSERVER, thus a kernel
with pcvt support won't build pcvt_drv.c (syntax error).

>How-To-Repeat:
	
Try to build a kernel on NetBSD/i386 with current source and pcvt support.

>Fix:
	
Apply the following patch to /src/sys/arch/i386/isa/pcvt/pcvt_hdr.h:

*** pcvt_hdr.h-orig	Thu Jan 22 17:51:40 1998
--- pcvt_hdr.h	Thu Jan 22 21:54:25 1998
***************
*** 1013,1019 ****
  u_char	scrnsv_active		= 0;		/* active flag */
  #endif /* PCVT_SCREENSAVER */
  
! #if XSERVER || PCVT_SCREENSAVER
  unsigned scrnsv_timeout		= 0;		/* initially off */
  #endif /* XSERVER || PCVT_SCREENSAVER */
  
--- 1013,1019 ----
  u_char	scrnsv_active		= 0;		/* active flag */
  #endif /* PCVT_SCREENSAVER */
  
! #if defined(XSERVER) || PCVT_SCREENSAVER
  unsigned scrnsv_timeout		= 0;		/* initially off */
  #endif /* XSERVER || PCVT_SCREENSAVER */
  
>Audit-Trail:
>Unformatted:
i386/isa/pcvt/pcvt_hdr.h misses defined() arround XSERVER