Mercurial > gnulib
changeset 27228:a61983e816b3
* lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
Needed for mingw.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 20 Oct 2006 19:38:02 +0000 |
parents | 318c403b94aa |
children | 73aecf36875e |
files | ChangeLog lib/openat-priv.h |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Oct 20 13:51:48 2006 +0000 +++ b/ChangeLog Fri Oct 20 19:38:02 2006 +0000 @@ -1,3 +1,8 @@ +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.
--- a/lib/openat-priv.h Fri Oct 20 13:51:48 2006 +0000 +++ b/lib/openat-priv.h Fri Oct 20 19:38:02 2006 +0000 @@ -34,6 +34,16 @@ # 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