File gnome-commander-libgsf.patch of Package gnome-commander

diff --git a/configure.in b/configure.in
index fbb645c..43fd4fd 100644
--- a/configure.in
+++ b/configure.in
@@ -247,6 +247,11 @@ if test x$with_libgsf != xno; then
     PKG_CHECK_MODULES(GSF, libgsf-1 >= $LIBGSF_REQ, have_gsf=yes, have_gsf=no)
 fi
 if test "x$have_gsf" = "xyes"; then
+    PKG_CHECK_MODULES(GSF_1_14_26, libgsf-1 >= 1.14.26,
+		      AC_DEFINE(HAVE_GSF_1_14_26,1,[Define to 1 if you have libgsf >= 1.14.26]),
+		      have_gsf_1_14_26=no)
+fi
+if test "x$have_gsf" = "xyes"; then
    AC_DEFINE(HAVE_GSF, 1, [Define to 1 if you have libgsf (OLE and ODF) support])
 fi
 
diff --git a/src/tags/gnome-cmd-tags-doc.cc b/src/tags/gnome-cmd-tags-doc.cc
index a666c19..4bb693a 100644
--- a/src/tags/gnome-cmd-tags-doc.cc
+++ b/src/tags/gnome-cmd-tags-doc.cc
@@ -38,7 +38,9 @@
 #include "utils.h"
 #include "dict.h"
 
-#ifdef HAVE_GSF
+#ifdef HAVE_GSF_1_14_26
+#include <gsf/gsf.h>
+#elif HAVE_GSF
 #include <gsf/gsf-infile.h>
 #include <gsf/gsf-infile-msole.h>
 #include <gsf/gsf-infile-zip.h>
openSUSE Build Service is sponsored by