Mercurial > hg > octave-lyh > gnulib-hg
changeset 10695:24d0f9902f09
se-linux-h: remove ENOTSUPP-defining code; instead, use errno
* modules/selinux-h (Depends-on): Add errno.
(configure.ac): Add AC_REQUIRE([AC_C_INLINE]).
* lib/se-context.in.h: Remove code to define ENOTSUPP.
* lib/se-selinux.in.h: Likewise.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Tue, 21 Oct 2008 17:18:53 +0200 |
parents | b2b4c17db720 |
children | 7909201fff3d |
files | lib/se-context.in.h lib/se-selinux.in.h modules/selinux-h |
diffstat | 3 files changed, 2 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/se-context.in.h +++ b/lib/se-context.in.h @@ -2,15 +2,6 @@ # define SELINUX_CONTEXT_H # include <errno.h> -/* Some systems don't have ENOTSUP. */ -# ifndef ENOTSUP -# ifdef ENOSYS -# define ENOTSUP ENOSYS -# else -/* Some systems don't have ENOSYS either. */ -# define ENOTSUP EINVAL -# endif -# endif typedef int context_t; static inline context_t context_new (char const *s)
--- a/lib/se-selinux.in.h +++ b/lib/se-selinux.in.h @@ -3,15 +3,6 @@ # include <sys/types.h> # include <errno.h> -/* Some systems don't have ENOTSUP. */ -# ifndef ENOTSUP -# ifdef ENOSYS -# define ENOTSUP ENOSYS -# else -/* Some systems don't have ENOSYS either. */ -# define ENOTSUP EINVAL -# endif -# endif typedef unsigned short security_class_t; # define security_context_t char*