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 8112ce2..fb38aff 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 0419a7d..697070b 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;