From: Jim Meyering Date: Fri, 20 Oct 2006 19:38:02 +0000 (+0000) Subject: * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition. X-Git-Tag: cvs-readonly~1681 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=565613e6fd455003f32a0917218a517648084195;p=gnulib.git * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition. Needed for mingw. --- diff --git a/ChangeLog b/ChangeLog index 32ccac7a5..1a54b47c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 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. 2006-10-19 Bruno Haible diff --git a/lib/openat-priv.h b/lib/openat-priv.h index 527cff808..2d98821f5 100644 --- a/lib/openat-priv.h +++ b/lib/openat-priv.h @@ -34,6 +34,16 @@ char *openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file); # 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