$NetBSD: patch-aa,v 1.3 2012/02/04 09:26:11 sbd Exp $

--- UTF8Tag.cc.orig	2008-12-16 11:20:56.000000000 +0000
+++ UTF8Tag.cc
@@ -32,6 +32,7 @@
 #include <errno.h>
 #include <string.h>
 #include <stdlib.h>
+#include <cstdio>
 
 #include <iconv.h>
 
@@ -71,7 +72,11 @@ void CUTF8Tag::Convert()
 		memset(Out,0,m_UTF8Value.length()*4);
 		size_t OutLeft=m_UTF8Value.length()*4;
 		
+#if defined(__DragonFly__) || (__linux__)
 		char *InBuff=In;
+#else
+		const char *InBuff=In;
+#endif
 		char *OutBuff=Out;
 		
 		iconv_t Convert=iconv_open(Codeset,"UTF-8");
