se-linux-h: remove ENOTSUPP-defining code; instead, use errno
authorJim Meyering <meyering@redhat.com>
Tue, 21 Oct 2008 15:18:53 +0000 (17:18 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 21 Oct 2008 16:08:16 +0000 (18:08 +0200)
* 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.

lib/se-context.in.h
lib/se-selinux.in.h
modules/selinux-h

index ec88a0318e0f33ed4d8b106b6f9ee7719f8473f7..f9fe9237d100d06ed72339793cb9decac06c9758 100644 (file)
@@ -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)
index aeaf950023ec073a7c64034bba49fd9ac6ac10f4..ce644872007769d045a0af4ddfbe667186a862db 100644 (file)
@@ -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*
index 603e057f0741b56c0efdc357d477bfc13e7b2c6f..05cdd71f2ed6f8f9f1e1135d750500d78b3b911d 100644 (file)
@@ -8,10 +8,12 @@ m4/selinux-context-h.m4
 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