diff options
author | agc <agc@pkgsrc.org> | 2004-01-23 09:02:15 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2004-01-23 09:02:15 +0000 |
commit | 4b96b56843beedb81dde63a4bb59f93094c8d4bc (patch) | |
tree | 5116e99fcd55efa2d3a3e5829fb894e31bece579 /audio/xcdplayer | |
parent | 5af3f5f4534364f5e0932abcbfda8398f90bd2a2 (diff) | |
download | pkgsrc-4b96b56843beedb81dde63a4bb59f93094c8d4bc.tar.gz |
Make this compile with gcc3 (varargs -> stdarg)
Diffstat (limited to 'audio/xcdplayer')
-rw-r--r-- | audio/xcdplayer/distinfo | 4 | ||||
-rw-r--r-- | audio/xcdplayer/patches/patch-ag | 40 |
2 files changed, 33 insertions, 11 deletions
diff --git a/audio/xcdplayer/distinfo b/audio/xcdplayer/distinfo index 9e6a4046782..b93db4619bd 100644 --- a/audio/xcdplayer/distinfo +++ b/audio/xcdplayer/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.2 2001/04/18 12:14:40 agc Exp $ +$NetBSD: distinfo,v 1.3 2004/01/23 09:02:15 agc Exp $ SHA1 (xcdplayer-2.2.tar.Z) = e518f2df9fcc5e21e1123fe6f5b1193f232b76ef Size (xcdplayer-2.2.tar.Z) = 89435 bytes @@ -8,7 +8,7 @@ SHA1 (patch-ac) = 4e3b501bd16f14183fa0e8970f8b1666ed524a45 SHA1 (patch-ad) = 1c1b3ac0661095c239228de69c5c8f161b5cdb99 SHA1 (patch-ae) = 19a4a70a4c83ae147c8cc653cf95c32370fd084f SHA1 (patch-af) = 54c96ac87764c222e48e0dcf4267a93cdd966843 -SHA1 (patch-ag) = c05179debd97b1f6b53c891fe85e4c1b0b8f9b62 +SHA1 (patch-ag) = cb787b19c00d8bda99367eb71dc5e234857a4539 SHA1 (patch-ah) = b2d4bd7fe5ab0089fd1e05827e9be6ca18a01233 SHA1 (patch-ai) = 2a3a3726aed4e295c5546d11fd0b3948cecc239a SHA1 (patch-aj) = 74e92d2096e5d6ffd6f24dbf2501ed349e9c834f diff --git a/audio/xcdplayer/patches/patch-ag b/audio/xcdplayer/patches/patch-ag index 8b5b05ebd87..2e9644818e8 100644 --- a/audio/xcdplayer/patches/patch-ag +++ b/audio/xcdplayer/patches/patch-ag @@ -1,8 +1,14 @@ -$NetBSD: patch-ag,v 1.3 1999/09/06 16:37:42 tron Exp $ +$NetBSD: patch-ag,v 1.4 2004/01/23 09:02:15 agc Exp $ --- debug.c.orig Tue Jan 12 19:59:35 1993 +++ debug.c Mon Sep 6 18:37:05 1999 -@@ -20,6 +20,10 @@ +@@ -15,31 +15,28 @@ + + # include <X11/Intrinsic.h> + +-# include <varargs.h> ++# include <stdarg.h> + # include <stdio.h> # include "debug.h" @@ -12,13 +18,29 @@ $NetBSD: patch-ag,v 1.3 1999/09/06 16:37:42 tron Exp $ + /* VARARGS */ void - debug_printf(va_alist) -@@ -33,7 +37,7 @@ - /* - * first arg is whether or not to print. - */ +-debug_printf(va_alist) +- va_dcl ++debug_printf(int p, char *fmt, ...) + { + va_list args; +- char *fmt; +- +- va_start(args); + +- /* +- * first arg is whether or not to print. +- */ - if ((va_arg(args, int) == 0) || (debug == False)) -+ if ((va_arg(args, int) == 0) || (app_data.debug == False)) ++ if (p == 0 || app_data.debug == False) { return; +- +- fmt = va_arg(args, char *); ++ } ++ va_start(args, fmt); + vfprintf(stdout, fmt, args); ++ va_end(args); + + fflush(stdout); - fmt = va_arg(args, char *); +- va_end(args); + } |