X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fopenat-priv.h;h=2d98821f55ae2b137e9942594b11b5f0f90e05bb;hb=53ed71f6a1cc4207b1972b73e4b5e1e830c8119d;hp=527cff80822c2c7f4c4abcc5026d0a7e7b02a7a8;hpb=75ff6c9d9a4d428c44dbbd8778f0e8080a0d3bdc;p=gnulib.git 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