pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/alevt Don't use function-local forward decl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0047a9f682ae
branches:  trunk
changeset: 515322:0047a9f682ae
user:      tron <tron%pkgsrc.org@localhost>
date:      Fri Jun 30 18:15:27 2006 +0000

description:
Don't use function-local forward declarations of static functions
to make this build with GCC 4.x.

diffstat:

 multimedia/alevt/distinfo         |   3 ++-
 multimedia/alevt/patches/patch-ab |  31 +++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletions(-)

diffs (47 lines):

diff -r 768692e09292 -r 0047a9f682ae multimedia/alevt/distinfo
--- a/multimedia/alevt/distinfo Fri Jun 30 18:11:39 2006 +0000
+++ b/multimedia/alevt/distinfo Fri Jun 30 18:15:27 2006 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 11:24:02 agc Exp $
+$NetBSD: distinfo,v 1.3 2006/06/30 18:15:27 tron Exp $
 
 SHA1 (alevt-1.6.0.tar.gz) = ac7d71e738e77fc485c59221171011673e239bbe
 RMD160 (alevt-1.6.0.tar.gz) = 33c30480c2e148642d653153662715da370ae76e
 Size (alevt-1.6.0.tar.gz) = 116646 bytes
 SHA1 (patch-aa) = 86e57806c89cdcf55be6125c0c3af6c136c76022
+SHA1 (patch-ab) = a2105193322b671960f426f42eb8590c01051139
diff -r 768692e09292 -r 0047a9f682ae multimedia/alevt/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/alevt/patches/patch-ab Fri Jun 30 18:15:27 2006 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1 2006/06/30 18:15:27 tron Exp $
+
+--- xio.c.orig 2000-10-11 18:49:10.000000000 +0100
++++ xio.c      2006-06-30 19:13:51.000000000 +0100
+@@ -32,10 +32,11 @@
+ static struct dl_head dpys[1];                /* list of all displays */
+ 
+ 
++static void xio_timer(void *data, int fd);
++
+ static int
+ timer_init(int argc, char **argv)
+ {
+-    static xio_timer();
+     int p[2], timer_pid, i;
+ 
+     if (pipe(p) == -1)
+@@ -157,11 +158,12 @@
+ 
+ 
+ 
++static void handle_event(struct xio *xio, int fd);
++
+ struct xio *
+ xio_open_dpy(char *dpy, int argc, char **argv)
+ {
+     XClassHint classhint[1];
+-    static void handle_event(); //forward ref
+     struct xio *xio;
+ 
+     if (local_init(argc, argv) == -1)



Home | Main Index | Thread Index | Old Index