From stolz@i2.informatik.rwth-aachen.de  Tue Nov 25 05:18:32 2003
Return-Path: <stolz@i2.informatik.rwth-aachen.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 967FB16A4CE; Tue, 25 Nov 2003 05:18:32 -0800 (PST)
Received: from atlas.informatik.rwth-aachen.de (atlas.Informatik.RWTH-Aachen.DE [137.226.194.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id D45ED43FEA; Tue, 25 Nov 2003 05:18:30 -0800 (PST)
	(envelope-from stolz@i2.informatik.rwth-aachen.de)
Received: from menelaos.informatik.rwth-aachen.de (menelaos.Informatik.RWTH-Aachen.DE [137.226.194.73])
	by atlas.informatik.rwth-aachen.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5-michaelw-20030918) with ESMTP id hAPDITe24519;
	Tue, 25 Nov 2003 14:18:29 +0100
Received: (from stolz@localhost)
	by menelaos.informatik.rwth-aachen.de (8.12.9p2/8.12.9/Submit) id hAPDITKf068629;
	Tue, 25 Nov 2003 14:18:29 +0100 (CET)
	(envelope-from stolz)
Message-Id: <200311251318.hAPDITKf068629@menelaos.informatik.rwth-aachen.de>
Date: Tue, 25 Nov 2003 14:18:29 +0100 (CET)
From: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Reply-To: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: bms@freebsd.org
Subject: [patch] x11/xmon: Fix build on -CURRENT
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59680
>Category:       ports
>Synopsis:       [patch] x11/xmon: Fix build on -CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 25 05:20:21 PST 2003
>Closed-Date:    Tue Nov 25 07:32:53 PST 2003
>Last-Modified:  Tue Nov 25 07:32:53 PST 2003
>Originator:     Volker Stolz
>Release:        FreeBSD 4.9-RC i386
>Organization:
Lehrstuhl fr Informatik II
>Environment:
System: FreeBSD menelaos.informatik.rwth-aachen.de 4.9-RC FreeBSD 4.9-RC #10: Tue Oct 7 12:32:25 CEST 2003 root@menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386


>Description:
Fix conflicting prototypes on -CURRENT.

Noten by: bento
Tested on: -CURRENT, -STABLE
>How-To-Repeat:
http://bento.freebsd.org/errorlogs/i386-5-latest/xmon-1.5.6.log
>Fix:
Add new patch-file files/patch-main.c:

--- patch-main.c begins here ---
--- main.c.orig	Tue Nov 25 14:05:21 2003
+++ main.c	Tue Nov 25 14:06:05 2003
@@ -36,6 +36,9 @@
 #include <fcntl.h>
 #endif
 
+#include <stdlib.h>
+#include <unistd.h>
+
 #include "xmond.h"
 #include "select_args.h"
 #include "commands.h"
@@ -74,9 +77,6 @@
 #if (mskcnt>4)
 static Bool ANYSET P((long *src));
 #endif
-
-extern char *getenv();
-extern int gethostname P((char *name, int namelen ));
 
 /* end function prototypes */
 
--- patch-main.c ends here ---
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bms 
State-Changed-When: Tue 25 Nov 2003 07:32:39 PST 
State-Changed-Why:  
Committed, thanks! 

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