Subject: port-sparc64/36735: /usr/include/sparc64/apmvar.h should exist
To: None <port-sparc64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <obata@lins.jp>
List: netbsd-bugs
Date: 08/05/2007 14:35:00
>Number:         36735
>Category:       port-sparc64
>Synopsis:       /usr/include/sparc64/apmvar.h should exist
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 05 14:35:00 +0000 2007
>Originator:     OBATA Akio
>Release:        NetBSD 3.1
>Organization:
	LINS, Japan.
>Environment:
System: NetBSD miki.lins.jp 3.1 NetBSD 3.1 (MIKI) #21: Sun Nov 5 09:26:06 JST 2006 obata@miki.lins.jp:/usr/src/sys/arch/i386/compile/MIKI i386
Architecture: i386
Machine: i386
>Description:
	/usr/include/sparc64/apmvar.h should exist.

	SPARC64 port support APM, but apmvar.h exists in /usr/include/sparc.
	Most of the application using APM include <machine/apmvar.h>, so
	failed to build. Need sppecial care.
	Checking support of APM also need special care.

	If sparc64/apmvar.h exist, it makes easy to check APM support,
	just check if /usr/include/machine/apmvar.h exists or not.
	No need to modify many existence application including
	<machine/apmvar.h>.

>How-To-Repeat:
	For instance, PR pkg/36289.
>Fix:
	Create /usr/include/sparc64/apmvar.h,
	and it just include <sparc/apmvar.h>