Mercurial > hg > octave-lojdl > gnulib-hg
changeset 7537:4d22e9da1fe7
* 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 | 579da6f9331a |
children | a75213853379 |
files | ChangeLog lib/openat-priv.h |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -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 +++ b/lib/openat-priv.h @@ -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