From 709a27ba480d0c7d2fcef30cf2dfb182fb2b54cf Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 28 Oct 2007 19:04:59 +0100 Subject: Define ENOTSUP, not ENOSYS. Needed on OpenBSD 3.9. * gl/lib/se-context.in.h (ENOTSUP): Define if missing. * gl/lib/se-selinux.in.h: Likewise. --- gl/lib/se-context.in.h | 12 ++++++------ gl/lib/se-selinux.in.h | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'gl') diff --git a/gl/lib/se-context.in.h b/gl/lib/se-context.in.h index 26e1709f1..ec88a0318 100644 --- a/gl/lib/se-context.in.h +++ b/gl/lib/se-context.in.h @@ -2,13 +2,13 @@ # define SELINUX_CONTEXT_H # include -/* Some systems don't have ENOSYS. */ -# ifndef ENOSYS -# ifdef ENOTSUP -# define ENOSYS ENOTSUP +/* Some systems don't have ENOTSUP. */ +# ifndef ENOTSUP +# ifdef ENOSYS +# define ENOTSUP ENOSYS # else -/* Some systems don't have ENOTSUP either. */ -# define ENOSYS EINVAL +/* Some systems don't have ENOSYS either. */ +# define ENOTSUP EINVAL # endif # endif diff --git a/gl/lib/se-selinux.in.h b/gl/lib/se-selinux.in.h index b08c7eee4..7bfe4c5ff 100644 --- a/gl/lib/se-selinux.in.h +++ b/gl/lib/se-selinux.in.h @@ -3,13 +3,13 @@ # include # include -/* Some systems don't have ENOSYS. */ -# ifndef ENOSYS -# ifdef ENOTSUP -# define ENOSYS ENOTSUP +/* Some systems don't have ENOTSUP. */ +# ifndef ENOTSUP +# ifdef ENOSYS +# define ENOTSUP ENOSYS # else -/* Some systems don't have ENOTSUP either. */ -# define ENOSYS EINVAL +/* Some systems don't have ENOSYS either. */ +# define ENOTSUP EINVAL # endif # endif -- cgit v1.2.3-70-g09d2