summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2009-05-24 10:07:59 +0000
committerMarkus Meier <maekke@gentoo.org>2009-05-24 10:07:59 +0000
commitdc76e923029ab2461b8ef9501f213ccab5e19605 (patch)
treed063d6fa27c9b0bf58907c483898ace3a3243f2f /media-gfx/hugin/files
parentgnonlin bump (diff)
downloadgentoo-2-dc76e923029ab2461b8ef9501f213ccab5e19605.tar.gz
gentoo-2-dc76e923029ab2461b8ef9501f213ccab5e19605.tar.bz2
gentoo-2-dc76e923029ab2461b8ef9501f213ccab5e19605.zip
fix building with gcc-4.4 by David Watzke, bug #270593
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'media-gfx/hugin/files')
-rw-r--r--media-gfx/hugin/files/hugin-0.7.0-gcc44.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/media-gfx/hugin/files/hugin-0.7.0-gcc44.patch b/media-gfx/hugin/files/hugin-0.7.0-gcc44.patch
new file mode 100644
index 000000000000..3409c2ecadcc
--- /dev/null
+++ b/media-gfx/hugin/files/hugin-0.7.0-gcc44.patch
@@ -0,0 +1,31 @@
+--- src/hugin_base/appbase/ProgressDisplayOld.h~ 2009-05-20 17:37:43.003423691 +0200
++++ src/hugin_base/appbase/ProgressDisplayOld.h 2009-05-20 17:38:01.960420437 +0200
+@@ -26,6 +26,7 @@
+ #ifndef _APPBASE_POGRESSDISPLAYOLD_H
+ #define _APPBASE_POGRESSDISPLAYOLD_H
+
++#include <cstdio>
+ #include <string>
+ #include <vector>
+ #include <iostream>
+--- src/hugin_base/hugin_utils/utils.cpp~ 2009-05-20 17:40:01.592423706 +0200
++++ src/hugin_base/hugin_utils/utils.cpp 2009-05-20 17:40:09.448420660 +0200
+@@ -171,7 +171,7 @@
+ if (digits < 0) {
+ strcpy(fmt,"%f");
+ } else {
+- std::sprintf(fmt,"%%.%df",digits);
++ sprintf(fmt,"%%.%df",digits);
+ }
+ char c[1024];
+ c[1023] = 0;
+--- src/hugin_base/panodata/PTScriptParsing.h~ 2009-05-20 17:45:42.491422105 +0200
++++ src/hugin_base/panodata/PTScriptParsing.h 2009-05-20 17:45:56.836420882 +0200
+@@ -25,6 +25,7 @@
+ #ifndef _PANODATA_PTSCRIPTPARSING_H
+ #define _PANODATA_PTSCRIPTPARSING_H
+
++#include <cstdio>
+ #include <string>
+ #include <vigra/diff2d.hxx>
+