From 565613e6fd455003f32a0917218a517648084195 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 20 Oct 2006 19:38:02 +0000 Subject: [PATCH] * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition. Needed for mingw. --- ChangeLog | 5 +++++ lib/openat-priv.h | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 32ccac7a5c..1a54b47c00 100644 --- 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 index 527cff8082..2d98821f55 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 -- 2.30.2