Bug 52289

Summary: comms/gnokii does not build under -CURRENT
Product: Ports & Packages Reporter: Bruce M Simpson <bms>
Component: Individual Port(s)Assignee: Anders Nordby <anders>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Bruce M Simpson 2003-05-15 16:40:15 UTC
	on -CURRENT (2003.05.08.00.00.00), the gnokii port does not build.
	It fails due to a missing definition of the u_int type in
	common/data/virtmodem.c, and utils/mgnokii.c. Both these files
	include <sys/file.h> which requires u_int to be defined.

	It should be noted both files contain the following:
	#define _XOPEN_SOURCE 500

	This appears to be required for gnokii to compile under Solaris
	with the correct unlockpt() declaration,

Fix: 

Inserting #define __BSD_VISIBLE 1 above the first attempt to directly
	or indirectly #include <sys/types.h> means the u_int type is
	picked up, but this is not a clean way to do things.

	Also, #include <sys/file.h> does not pick up much on FreeBSD.
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2003-05-19 15:37:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->anders

over to maintainer
Comment 2 Anders Nordby freebsd_committer freebsd_triage 2003-05-21 00:56:07 UTC
State Changed
From-To: open->closed

Duplicate of PR ports/47516.