Bug 54528 - cache.h namespace pollution
Summary: cache.h namespace pollution
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: sparc64 (show other bugs)
Version: 4.8-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-sparc64 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-16 03:20 UTC by Daniel Harris
Modified: 2003-07-18 00:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Harris 2003-07-16 03:20:14 UTC
	whowatch port is broken on sparc64 thusly:
	proctree.c:107: conflicting types for `cache'
	/usr/include/machine/cache.h:111: previous declaration of `cache'

	cache.h line 111:
	extern struct cacheinfo cache;

Fix: 

Message-ID: <20030712160849.GF63369@locore.ca>

	"Its a bug in cache.h, namespace polution, the kernel variables
	should be protected by #ifdef _KERNEL."
How-To-Repeat: 	cd /usr/ports/sysutils/whowatch ; make
Comment 1 Jake Burkholder freebsd_committer freebsd_triage 2003-07-18 00:42:23 UTC
State Changed
From-To: open->closed

Fixed!