Subject: port-i386/1424: i386 linux_machdep.c depends on pcvt
To: None <gnats-bugs@gnats.netbsd.org>
From: Mike Long <mikel@shore.net>
List: netbsd-bugs
Date: 08/31/1995 00:12:11
>Number:         1424
>Category:       port-i386
>Synopsis:       i386 linux_machdep.c depends on pcvt
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 31 00:20:02 1995
>Last-Modified:
>Originator:     Mike Long
>Organization:
	fnord
>Release:        950830
>Environment:
System: NetBSD azathoth 1.0A NetBSD 1.0A (AZATHOTH) #1: Wed Aug 30 01:45:51 EDT 1995 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386

>Description:
	Some variable declarations in linux_machdepioctl() need to be
wrapped with #if NVT > 0 / #endif, or the kernel build will choke on
'struct vt_mode lvt'.

>How-To-Repeat:
	Build an i386 kernel with 'options COMPAT_LINUX' but without
pcvt.

>Fix:
	Apply this patch:

*** /sys/arch/i386/i386/linux_machdep.c~        Wed Aug 30 03:06:36 1995
--- /sys/arch/i386/i386/linux_machdep.c Wed Aug 30 23:19:34 1995
***************
*** 418,421 ****
--- 418,422 ----
  {
        struct ioctl_args bia, tmparg;
+ #if NVT > 0
        int error, mode;
        struct vt_mode lvt;
***************
*** 424,427 ****
--- 425,429 ----
        struct file *fp;
        struct filedesc *fdp;
+ #endif
        u_long com;
  
>Audit-Trail:
>Unformatted: