# HG changeset patch # User Jim Meyering # Date 1161373082 0 # Node ID 4d22e9da1fe73047c1a85f5899114eb30ebc0652 # Parent 579da6f9331a582fb9b7e35126dc8fb40c0d84c7 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition. Needed for mingw. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-19 Bruno Haible + + * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition. + Needed for mingw. + 2006-10-19 Bruno Haible * m4/size_max.m4 (gl_SIZE_MAX): Cache the result. diff --git a/lib/openat-priv.h b/lib/openat-priv.h --- 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