error, strerror-override: Support mingw64 from Fedora 17.
authorPaolo Bonzini <bonzini@gnu.org>
Sun, 3 Jun 2012 16:02:55 +0000 (18:02 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 3 Jun 2012 16:03:13 +0000 (18:03 +0200)
* lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
* lib/strerror-override.h (strerror_override): Test it.
* lib/strerror-override.c (strerror_override): Likewise.

ChangeLog
lib/errno.in.h
lib/strerror-override.c
lib/strerror-override.h

index 559f455..b200d5f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
+           Bruno Haible  <bruno@clisp.org>
+
+       error, strerror-override: Support mingw64 from Fedora 17.
+       * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
+       indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
+       * lib/strerror-override.h (strerror_override): Test it.
+       * lib/strerror-override.c (strerror_override): Likewise.
+
 2012-06-03  Bruno Haible  <bruno@clisp.org>
 
        error, strerror-override: Support new errno values from POSIX:2008.
index 84d79ac..659726b 100644 (file)
 #  endif
 
 #  ifndef EOWNERDEAD
-#   define EOWNERDEAD      133
-#   define ENOTRECOVERABLE 127
+#   define EOWNERDEAD 133
 #   define GNULIB_defined_EOWNERDEAD 1
 #  endif
 
+#  ifndef ENOTRECOVERABLE
+#   define ENOTRECOVERABLE 127
+#   define GNULIB_defined_ENOTRECOVERABLE 1
+#  endif
+
 #  ifndef EINPROGRESS
 #   define EINPROGRESS     112
 #   define EALREADY        103
 #   define ENOTRECOVERABLE 2014
 #  endif
 #  define GNULIB_defined_EOWNERDEAD 1
+#  define GNULIB_defined_ENOTRECOVERABLE 1
 # endif
 
 #endif /* _@GUARD_PREFIX@_ERRNO_H */
index b47238c..34f0852 100644 (file)
@@ -282,6 +282,9 @@ strerror_override (int errnum)
 #if GNULIB_defined_EOWNERDEAD
     case EOWNERDEAD:
       return "Owner died";
+#endif
+
+#if GNULIB_defined_ENOTRECOVERABLE
     case ENOTRECOVERABLE:
       return "State not recoverable";
 #endif
index a41afa7..566530f 100644 (file)
@@ -44,7 +44,8 @@
      || GNULIB_defined_ESTALE \
      || GNULIB_defined_EDQUOT \
      || GNULIB_defined_ECANCELED \
-     || GNULIB_defined_EOWNERDEAD
+     || GNULIB_defined_EOWNERDEAD \
+     || GNULIB_defined_ENOTRECOVERABLE
 extern const char *strerror_override (int errnum);
 # else
 #  define strerror_override(ignored) NULL