Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2003 14:18:29 +0100 (CET)
From:      Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        bms@FreeBSD.org
Subject:   ports/59680: [patch] x11/xmon: Fix build on -CURRENT
Message-ID:  <200311251318.hAPDITKf068629@menelaos.informatik.rwth-aachen.de>
Resent-Message-ID: <200311251320.hAPDKMh3096546@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         59680
>Category:       ports
>Synopsis:       [patch] x11/xmon: Fix build on -CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 25 05:20:21 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Volker Stolz
>Release:        FreeBSD 4.9-RC i386
>Organization:
Lehrstuhl für 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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311251318.hAPDITKf068629>