--- /dev/null
+--- vigra1.6.0/src/impex/png.cxx 2008-08-13 15:15:45.000000000 +0200
++++ vigra1.6.0/src/impex/png.cxx.new 2010-01-28 19:45:59.180738629 +0100
+@@ -270,8 +270,13 @@
+ // expand gray values to at least one byte size
+ if ( color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8 ) {
+ if (setjmp(png->jmpbuf))
++#if PNG_LIBPNG_VER < 10400
+ vigra_postcondition( false,png_error_message.insert(0, "error in png_set_gray_1_2_4_to_8(): ").c_str());
+ png_set_gray_1_2_4_to_8(png);
++#else
++ vigra_postcondition( false,png_error_message.insert(0, "error in png_set_expand_gray_1_2_4_to_8(): ").c_str());
++ png_set_expand_gray_1_2_4_to_8(png);
++#endif
+ bit_depth = 8;
+ }
+