Skip site navigation (1)Skip section navigation (2)
Date:      17 Nov 2003 16:29:36 -0000
From:      Mark Daniel Reidel <ports@mark.reidel.info>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/59375: [MAINTAINER] Fix to compile audio/traymp under STABLE
Message-ID:  <20031117162936.3668.qmail@karm.dyndns.org>
Resent-Message-ID: <200311171630.hAHGUHdK073761@freefall.freebsd.org>

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

>Number:         59375
>Category:       ports
>Synopsis:       [MAINTAINER] Fix to compile audio/traymp under STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 17 08:30:16 PST 2003
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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