From mark@karm.dyndns.org  Mon Nov 17 08:29:41 2003
Return-Path: <mark@karm.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D183A16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Nov 2003 08:29:41 -0800 (PST)
Received: from karm.dyndns.org (213-182-118-61.teleos-web.de [213.182.118.61])
	by mx1.FreeBSD.org (Postfix) with SMTP id 1C13D43FBF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Nov 2003 08:29:38 -0800 (PST)
	(envelope-from mark@karm.dyndns.org)
Received: (qmail 3669 invoked by uid 1001); 17 Nov 2003 16:29:36 -0000
Message-Id: <20031117162936.3668.qmail@karm.dyndns.org>
Date: 17 Nov 2003 16:29:36 -0000
From: Mark Daniel Reidel <ports@mark.reidel.info>
Reply-To: Mark Daniel Reidel <ports@mark.reidel.info>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] Fix to compile audio/traymp under STABLE
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59375
>Category:       ports
>Synopsis:       [MAINTAINER] Fix to compile audio/traymp under STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 17 08:30:16 PST 2003
>Closed-Date:    Mon Nov 17 10:23:01 PST 2003
>Last-Modified:  Mon Nov 17 10:23:01 PST 2003
>Originator:     Mark Daniel Reidel
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD alu.reidel.info 5.1-CURRENT FreeBSD 5.1-CURRENT #6: Tue Oct 21 10:02:16 CEST 2003 root@alu.reidel.info:/usr/obj/usr/src/sys/MARK i386
>Description:
	Traymp doesn't compile correctly on compilers that don't follow the latest C standard (gcc < 3), e.g. 4-STABLE.
>How-To-Repeat:
>Fix:
This (hopefully) fixes the compile-errors for the audio/traymp port under STABLE.

--- fix begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	files
#	files/patch-tray.c
#
echo c - files
mkdir -p files > /dev/null 2>&1
echo x - files/patch-tray.c
sed 's/^X//' >files/patch-tray.c << 'END-of-files/patch-tray.c'
X--- src/tray.c.orig	Mon Nov 17 16:44:33 2003
X+++ src/tray.c	Mon Nov 17 16:44:51 2003
X@@ -117,9 +117,9 @@
X /* handle the click event on the tray icon */
X 
X int tray_clicked(GtkWidget *image, GdkEventButton *event){
X+	char *buf;
X 	if(!insetting.update_timeout) return 1;
X 	insetting.update_timeout = FALSE;
X-	char *buf;
X 	if(tray_icon == NULL) return 1;
X 	insetting.update_timeout = TRUE; /* where done.. no need to wait */
X 		check_error();
END-of-files/patch-tray.c
exit
--- fix ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Mon Nov 17 09:54:49 PST 2003 
Responsible-Changed-Why:  
I'll handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59375 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Mon Nov 17 10:21:39 PST 2003 
State-Changed-Why:  
Committed, thanks! There was more C99'isms to patch, 
please pick up all patches and try to get them 
included to next release of traymp. 

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