diff -pruN 1.0.1-1.2/Metric.cpp 1.0.1-1.2ubuntu1/Metric.cpp
--- 1.0.1-1.2/Metric.cpp	2007-03-16 06:17:17.000000000 +0000
+++ 1.0.1-1.2ubuntu1/Metric.cpp	2009-10-21 16:23:12.000000000 +0100
@@ -19,6 +19,7 @@ if not, write to the Free Software Found
 #include "RGBAImage.h"
 #include "LPyramid.h"
 #include <math.h>
+#include <cstdio>
 
 #ifndef M_PI
 #define M_PI 3.14159265f
@@ -313,4 +314,4 @@ bool Yee_Compare(CompareArgs &args)
 		}
 	}
 	return false;
-}
\ No newline at end of file
+}
diff -pruN 1.0.1-1.2/debian/changelog 1.0.1-1.2ubuntu1/debian/changelog
--- 1.0.1-1.2/debian/changelog	2009-10-21 16:23:12.000000000 +0100
+++ 1.0.1-1.2ubuntu1/debian/changelog	2009-10-21 16:23:12.000000000 +0100
@@ -1,3 +1,10 @@
+perceptualdiff (1.0.1-1.2ubuntu1) karmic; urgency=low
+
+  * Metric.cpp: add missing include to fix FTBFS, thanks to Martin
+    Michlmayr, DBTS: #505022.
+
+ -- Stefan Potyra <sistpoty@ubuntu.com>  Sat, 10 Oct 2009 03:43:00 +0200
+
 perceptualdiff (1.0.1-1.2) unstable; urgency=low
 
   * Non-maintainer upload.
