diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gl/lib/se-context.in.h | 12 | ||||
-rw-r--r-- | gl/lib/se-selinux.in.h | 12 |
3 files changed, 16 insertions, 12 deletions
@@ -1,5 +1,9 @@ 2007-10-28 Jim Meyering <meyering@redhat.com> + 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. + Define ENODATA, for FreeBSD 5.0 and 6.1. * src/system.h (ENODATA): Define, if missing. 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 <errno.h> -/* 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 <sys/types.h> # include <errno.h> -/* 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 |