File inkscape-0.91-gstatbuf.patch of Package mingw32-inkscape

--- inkscape-0.91/src/color-profile.cpp	2014-11-30 19:45:32.000000000 +0100
+++ inkscape-0.91/src/color-profile.cpp	2015-10-19 21:50:11.211249714 +0200
@@ -783,7 +783,7 @@
 static bool isIccFile( gchar const *filepath )
 {
     bool isIccFile = false;
-    struct stat st;
+    GStatBuf st;
     if ( g_stat(filepath, &st) == 0 && (st.st_size > 128) ) {
         //0-3 == size
         //36-39 == 'acsp' 0x61637370
--- inkscape-0.91/src/display/cairo-utils.cpp	2014-11-30 19:45:32.000000000 +0100
+++ inkscape-0.91/src/display/cairo-utils.cpp	2015-10-19 21:50:11.211249714 +0200
@@ -291,7 +291,7 @@
     if (!g_file_test(fn.c_str(), G_FILE_TEST_EXISTS)) { 
         return NULL;
     }
-    struct stat stdir;
+    GStatBuf stdir;
     int val = g_stat(fn.c_str(), &stdir);
     if (val == 0 && stdir.st_mode & S_IFDIR){
         return NULL;
--- inkscape-0.91/src/inkscape.cpp	2014-11-30 19:45:32.000000000 +0100
+++ inkscape-0.91/src/inkscape.cpp	2015-10-19 21:50:11.211249714 +0200
@@ -381,7 +381,7 @@
         if (doc->isModifiedSinceSave()) {
             gchar *oldest_autosave = 0;
             const gchar  *filename = 0;
-            struct stat sb;
+            GStatBuf sb;
             time_t min_time = 0;
             gint count = 0;
 
--- inkscape-0.91/src/io/sys.cpp	2014-11-30 19:45:32.000000000 +0100
+++ inkscape-0.91/src/io/sys.cpp	2015-10-19 21:50:11.212249692 +0200
@@ -226,7 +226,7 @@
             filename = g_filename_from_utf8 ( utf8name, -1, NULL, NULL, NULL );
         }
         if ( filename ) {
-            struct stat st;
+            GStatBuf st;
             if (g_file_test (filename, G_FILE_TEST_EXISTS)){ 
                 if (g_lstat (filename, &st) == 0) {
                     success = ((st.st_mode & S_IWRITE) != 0);
--- inkscape-0.91/src/sp-image.cpp	2014-11-30 19:45:32.000000000 +0100
+++ inkscape-0.91/src/sp-image.cpp	2015-10-19 21:50:11.212249692 +0200
@@ -804,7 +804,7 @@
     if ( image->href && image->pixbuf && image->pixbuf->modificationTime()) {
         // It *might* change
 
-        struct stat st;
+        GStatBuf st;
         memset(&st, 0, sizeof(st));
         int val = 0;
         if (g_file_test (image->pixbuf->originalPath().c_str(), G_FILE_TEST_EXISTS)){ 
--- inkscape-0.91/src/ui/dialog/filedialogimpl-gtkmm.cpp	2014-11-30 19:45:32.000000000 +0100
+++ inkscape-0.91/src/ui/dialog/filedialogimpl-gtkmm.cpp	2015-10-19 21:50:11.212249692 +0200
@@ -504,7 +504,7 @@
         Glib::ustring fileNameUtf8 = Glib::filename_to_utf8(fileName);
         gchar *fName = const_cast<gchar *>(
             fileNameUtf8.c_str()); // const-cast probably not necessary? (not necessary on Windows version of stat())
-        struct stat info;
+        GStatBuf info;
         if (g_stat(fName, &info)) // stat returns 0 upon success
         {
             g_warning("SVGPreview::set() : %s : %s", fName, strerror(errno));
openSUSE Build Service is sponsored by