* 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.
# 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)
# 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*
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