From 62786d194e79b6800252b12c52a651a8248a81fb Mon Sep 17 00:00:00 2001 From: naddy Date: Sat, 15 Jun 2002 14:52:58 +0000 Subject: [PATCH] fix for GCC 3.1 --- audio/xmms-bonk/Makefile | 3 ++- audio/xmms-bonk/patches/patch-bonk-xmms_cc | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 audio/xmms-bonk/patches/patch-bonk-xmms_cc diff --git a/audio/xmms-bonk/Makefile b/audio/xmms-bonk/Makefile index 2de5bbb1698..56129ca707e 100644 --- a/audio/xmms-bonk/Makefile +++ b/audio/xmms-bonk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2002/06/03 14:51:26 naddy Exp $ +# $OpenBSD: Makefile,v 1.2 2002/06/15 14:52:58 naddy Exp $ NOT_FOR_ARCHS= ${NO_SHARED_ARCHS} @@ -22,6 +22,7 @@ MASTER_SITES= http://www.proustmedia.de/bonk-xmms/ LIB_DEPENDS= xmms.3::audio/xmms +MAKE_ENV= CXX="${CXX}" ALL_TARGET= do-install: diff --git a/audio/xmms-bonk/patches/patch-bonk-xmms_cc b/audio/xmms-bonk/patches/patch-bonk-xmms_cc new file mode 100644 index 00000000000..44044209b26 --- /dev/null +++ b/audio/xmms-bonk/patches/patch-bonk-xmms_cc @@ -0,0 +1,21 @@ +$OpenBSD: patch-bonk-xmms_cc,v 1.1 2002/06/15 14:52:58 naddy Exp $ +--- bonk-xmms.cc.orig Fri May 31 20:22:09 2002 ++++ bonk-xmms.cc Sat Jun 15 14:38:45 2002 +@@ -44,6 +44,8 @@ + #include + #include + ++using namespace std; ++ + // == Déclarations plugin ====================================================== + + #define VERSION "0.11" +@@ -151,7 +153,7 @@ + * @param format char* Chaîne de format + * @param ... Liste d'arguments variables + */ +- void bonk_xmms__log(int line, char *func, char *format, ...) ++ void bonk_xmms__log(int line, const char *func, char *format, ...) + { + #ifdef DEBUG + FILE *logfile = fopen("/tmp/plugin-bonk.log", "a");