Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-src_IceCast.cpp,v 1.1 2014/02/22 14:51:03 wiedi Exp $
Fix "log10(int) is ambigous" on SunOS
--- src/IceCast.cpp.orig 2013-07-15 05:50:42.000000000 +0000
+++ src/IceCast.cpp
@@ -145,7 +145,7 @@ IceCast :: sendLogin ( void )
/* send the x-audiocast headers */
str = "\nx-audiocast-bitrate: ";
sink->write( str, strlen( str));
- if ( log10(getBitRate()) >= (STRBUF_SIZE-2) ) {
+ if ( log10((double)getBitRate()) >= (STRBUF_SIZE-2) ) {
throw Exception( __FILE__, __LINE__,
"bitrate does not fit string buffer", getBitRate());
}