[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fchmodat on mingw
From: |
Bruno Haible |
Subject: |
fchmodat on mingw |
Date: |
Fri, 20 Oct 2006 15:57:21 +0200 |
User-agent: |
KMail/1.9.1 |
This fixes the build error of fchmodat on mingw.
Jim, Paul?
2006-10-19 Bruno Haible <address@hidden>
* 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
- fchmodat on mingw,
Bruno Haible <=