From monkey@vectors.cx  Sun Jul 28 17:20:32 2002
Return-Path: <monkey@vectors.cx>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3445537B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Jul 2002 17:20:32 -0700 (PDT)
Received: from vectors.cx (manifold.vectors.cx [64.163.147.229])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E65F543E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Jul 2002 17:20:31 -0700 (PDT)
	(envelope-from monkey@vectors.cx)
Received: from vectors.cx (8ea9d8664888bcd20c61671a1d3e7387@localhost [127.0.0.1])
	by vectors.cx (8.12.4/8.12.4) with ESMTP id g6T0L52e070933
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Jul 2002 17:21:05 -0700 (PDT)
	(envelope-from monkey@vectors.cx)
Received: (from monkey@localhost)
	by vectors.cx (8.12.4/8.12.4/Submit) id g6T0L5Tj070932;
	Sun, 28 Jul 2002 17:21:05 -0700 (PDT)
	(envelope-from monkey)
Message-Id: <200207290021.g6T0L5Tj070932@vectors.cx>
Date: Sun, 28 Jul 2002 17:21:05 -0700 (PDT)
From: Adam Weinberger <adam@vectors.cx>
Reply-To: Adam Weinberger <adam@vectors.cx>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: patch: fix x11-toolkits/xview 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         41093
>Category:       ports
>Synopsis:       patch: fix x11-toolkits/xview
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 28 17:30:01 PDT 2002
>Closed-Date:    Wed Jul 31 19:51:13 PDT 2002
>Last-Modified:  Wed Jul 31 19:51:13 PDT 2002
>Originator:     Adam Weinberger
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD smacky.vectors.cx 4.6-STABLE FreeBSD 4.6-STABLE #113: Wed Jul 24 12:13:03 PDT 2002 root@smacky.vectors.cx:/usr/src/sys/compile/smacky i386


	
>Description:
	x11-toolkits/xview/$WRKSRC/lib/libxview/misc/gettext.c uses its own mmap
	if it doesn't exist in the system, but prototypes its internal function
	regardless, killing the build.
	
>How-To-Repeat:
	
>Fix:

	

	this patch can happily exist as x11-toolkits/xview/files/patch-lq

--- xview-patch-lq.patch begins here ---
--- lib/libxview/misc/gettext.c.orig	Sun Jul 28 17:07:43 2002
+++ lib/libxview/misc/gettext.c	Sun Jul 28 17:08:14 2002
@@ -13,7 +13,9 @@
 char * dgettext(), *bindtextdomain();
 char *_gettext();
 char *fgets(), *getenv();
+#ifndef OS_HAS_MMAP
 caddr_t mmap();
+#endif
 
 static struct domain_binding *firstbind=0, *lastbind=0;
 
--- xview-patch-lq.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pat 
State-Changed-When: Wed Jul 31 19:50:49 PDT 2002 
State-Changed-Why:  
Committed, Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41093 
>Unformatted:
