diff options
author | Francois Andriot <francois.andriot@free.fr> | 2012-05-05 11:05:03 +0200 |
---|---|---|
committer | Francois Andriot <francois.andriot@free.fr> | 2012-05-05 11:05:03 +0200 |
commit | 7379de160c3b5ca701a1e9c507facd3c2a3244a3 (patch) | |
tree | ab9d518bc6d4dff348342d35ac9036e45eea7209 /redhat/applications/digikam/digikam-3.5.13-fix_libpng_support.patch | |
parent | 0610a9a48d1e911c8bc444b75b22c016d33abc53 (diff) | |
download | tde-packaging-7379de160c3b5ca701a1e9c507facd3c2a3244a3.tar.gz tde-packaging-7379de160c3b5ca701a1e9c507facd3c2a3244a3.zip |
RHEL/Fedora: fix digikam for GCC 4.7
Diffstat (limited to 'redhat/applications/digikam/digikam-3.5.13-fix_libpng_support.patch')
-rw-r--r-- | redhat/applications/digikam/digikam-3.5.13-fix_libpng_support.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/redhat/applications/digikam/digikam-3.5.13-fix_libpng_support.patch b/redhat/applications/digikam/digikam-3.5.13-fix_libpng_support.patch new file mode 100644 index 000000000..5ca2353ef --- /dev/null +++ b/redhat/applications/digikam/digikam-3.5.13-fix_libpng_support.patch @@ -0,0 +1,40 @@ +--- digikam/digikam/libs/dimg/loaders/pngloader.cpp.ORI 2012-05-01 14:49:41.357985513 +0200 ++++ digikam/digikam/libs/dimg/loaders/pngloader.cpp 2012-05-01 14:53:47.459349483 +0200 +@@ -120,7 +120,11 @@ + // PNG error handling. If an error occurs during reading, libpng + // will jump here + ++#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4 ++ if (setjmp(png_jmpbuf(png_ptr))) ++#else + if (setjmp(png_ptr->jmpbuf)) ++#endif + { + DDebug() << k_funcinfo << "Internal libPNG error during reading file. Process aborted!" << endl; + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); +@@ -526,7 +531,11 @@ + // PNG error handling. If an error occurs during writing, libpng + // will jump here + ++#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4 ++ if (setjmp(png_jmpbuf(png_ptr))) ++#else + if (setjmp(png_ptr->jmpbuf)) ++#endif + { + DDebug() << k_funcinfo << "Internal libPNG error during writing file. Process aborted!" << endl; + fclose(f); +--- digikam/digikam/kioslave/digikamthumbnail.cpp.ORI 2012-05-01 15:44:40.237089691 +0200 ++++ digikam/digikam/kioslave/digikamthumbnail.cpp 2012-05-01 15:45:22.939534916 +0200 +@@ -392,7 +392,11 @@ + return qimage; + } + ++#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4 ++ if (setjmp(png_jmpbuf(png_ptr))) ++#else + if (setjmp(png_ptr->jmpbuf)) ++#endif + { + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + fclose(f); |