Cope with EEXIST == ENOTEMPTY. Reported by Nicolas Joseph
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 12 Feb 2009 01:52:17 +0000 (01:52 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 12 Feb 2009 01:52:17 +0000 (01:52 +0000)
        * gioerror.c (g_io_error_from_errno): Cope with EEXIST == ENOTEMPTY.
        Reported by Nicolas Joseph

svn path=/trunk/; revision=7859

gio/ChangeLog
gio/gioerror.c

index 8112ce2b18a551272111e4a63aad71257948c2a4..fb38aff46399000d6da5144c5777d5be4494c96a 100644 (file)
@@ -1,3 +1,11 @@
+2009-02-11  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 541225 – Can't compile gio on AIX : duplicate case value in 
+       gioerror.c
+
+       * gioerror.c (g_io_error_from_errno): Cope with EEXIST == ENOTEMPTY. 
+       Reported by Nicolas Joseph 
+
 2009-02-04  Alexander Larsson  <alexl@redhat.com>
 
        Bug 566747 - URIs opened with firefox %u load as local files
index 0419a7d060cc3c921690484a5cc8a64493176870..697070bb7812159f7d9c598baed4732332bb5763 100644 (file)
@@ -138,7 +138,7 @@ g_io_error_from_errno (gint err_no)
       break;
 #endif
 
-#ifdef ENOTEMPTY
+#if defined(ENOTEMPTY) && (!defined (EEXIST) || (ENOTEMPTY != EEXIST))
     case ENOTEMPTY:
       return G_IO_ERROR_NOT_EMPTY;
       break;