This fixes the build error of fchmodat on mingw.
Jim, Paul?
2006-10-19 Bruno Haible <[EMAIL PROTECTED]>
* lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition. Needed
for mingw.
*** openat-priv.h.bak 2006-10-07 01:01:48.000000000 +0200
--- openat-priv.h 2006-10-20 03:41:07.000000000 +0200
***************
*** 34,39 ****
--- 34,49 ----
# 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