diff options
Diffstat (limited to 'lib/openat-priv.h')
-rw-r--r-- | lib/openat-priv.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/openat-priv.h b/lib/openat-priv.h index 2b4780eec..1f420c175 100644 --- a/lib/openat-priv.h +++ b/lib/openat-priv.h @@ -19,6 +19,7 @@ #include <stdio.h> #include <string.h> +#include <errno.h> #include "alloca.h" #include "intprops.h" @@ -41,6 +42,16 @@ } \ while (0) +/* Some systems don't have ENOSYS. */ +#ifndef ENOSYS +# ifdef ENOTSUP +# define ENOSYS ENOTSUP +# else +/* Some systems don't have ENOTSUP either. */ +# define ENOSYS 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 |