diff options
author | arved <arved@FreeBSD.org> | 2006-12-20 23:58:00 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2006-12-20 23:58:00 +0800 |
commit | 8b6a3cc3892a6c45a18172f785ee3d181b35d55d (patch) | |
tree | 0aa37da5833a281eecdb341e9d18ad8aa9fa564b /sysutils | |
parent | 10cb08f9dd8968a713d9980141ed477fedf4a4d7 (diff) | |
download | freebsd-ports-gnome-8b6a3cc3892a6c45a18172f785ee3d181b35d55d.tar.gz freebsd-ports-gnome-8b6a3cc3892a6c45a18172f785ee3d181b35d55d.tar.zst freebsd-ports-gnome-8b6a3cc3892a6c45a18172f785ee3d181b35d55d.zip |
Fix build with gcc41
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/xstow/files/patch-src-format.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/xstow/files/patch-src-format.h b/sysutils/xstow/files/patch-src-format.h new file mode 100644 index 000000000000..166252e2e9f8 --- /dev/null +++ b/sysutils/xstow/files/patch-src-format.h @@ -0,0 +1,26 @@ +--- src/format.h.orig Wed Dec 20 16:46:15 2006 ++++ src/format.h Wed Dec 20 16:46:55 2006 +@@ -648,17 +648,17 @@ + + switch( num_of_args ) + { +- case 1: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 1: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ) ); break; +- case 2: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 2: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ), D( b ) ); break; +- case 3: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 3: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ), D( b ), D( c ) ); break; +- case 4: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 4: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ), D( b ), D( c ), D( d ) ); break; +- case 5: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 5: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ), D( b ), D( c ), D( d ), D( e ) ); break; +- case 6: n = std::snprintf( buffer, buffer_size, format.c_str(), ++ case 6: n = snprintf( buffer, buffer_size, format.c_str(), + D( a ), D( b ), D( c ), D( d ), D( e ), D( f ) ); break; + } + |