* lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
authorJim Meyering <jim@meyering.net>
Fri, 20 Oct 2006 19:38:02 +0000 (19:38 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 20 Oct 2006 19:38:02 +0000 (19:38 +0000)
Needed for mingw.

ChangeLog
lib/openat-priv.h

index 32ccac7..1a54b47 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-10-19  Bruno Haible  <bruno@clisp.org>
 
+       * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
+       Needed for mingw.
+
+2006-10-19  Bruno Haible  <bruno@clisp.org>
+
        * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
 
 2006-10-19  Bruno Haible  <bruno@clisp.org>
index 527cff8..2d98821 100644 (file)
@@ -34,6 +34,16 @@ char *openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file);
 # endif
 #endif
 
+/* Some systems don't have EOPNOTSUPP.  */
+#ifndef EOPNOTSUPP
+# ifdef ENOTSUP
+#  define EOPNOTSUPP ENOTSUP
+# else
+/* Some systems don't have ENOTSUP either.  */
+#  define EOPNOTSUPP EINVAL
+# endif
+#endif
+
 /* Trying to access a BUILD_PROC_NAME file will fail on systems without
    /proc support, and even on systems *with* ProcFS support.  Return
    nonzero if the failure may be legitimate, e.g., because /proc is not