# HG changeset patch # User Jim Meyering # Date 1224602333 -7200 # Node ID 24d0f9902f0909e67bb2345616e7880f5abdc06d # Parent b2b4c17db720531c2b9d612fff326c1b62444958 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. diff --git a/lib/se-context.in.h b/lib/se-context.in.h --- a/lib/se-context.in.h +++ b/lib/se-context.in.h @@ -2,15 +2,6 @@ # define SELINUX_CONTEXT_H # include -/* 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) diff --git a/lib/se-selinux.in.h b/lib/se-selinux.in.h --- a/lib/se-selinux.in.h +++ b/lib/se-selinux.in.h @@ -3,15 +3,6 @@ # include # include -/* 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* diff --git a/modules/selinux-h b/modules/selinux-h --- a/modules/selinux-h +++ b/modules/selinux-h @@ -8,10 +8,12 @@ m4/selinux-selinux-h.m4 Depends-on: +errno configure.ac: gl_HEADERS_SELINUX_SELINUX_H gl_HEADERS_SELINUX_CONTEXT_H +AC_REQUIRE([AC_C_INLINE]) Makefile.am: lib_SOURCES += se-context.in.h se-selinux.in.h