]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Define ENOTSUP, not ENOSYS. Needed on OpenBSD 3.9.
authorJim Meyering <meyering@redhat.com>
Sun, 28 Oct 2007 18:04:59 +0000 (19:04 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 28 Oct 2007 18:04:59 +0000 (19:04 +0100)
* gl/lib/se-context.in.h (ENOTSUP): Define if missing.
* gl/lib/se-selinux.in.h: Likewise.

ChangeLog
gl/lib/se-context.in.h
gl/lib/se-selinux.in.h

index becbb6f3cbc89bf5b7f89f1a265bf1bc36d1b34f..b091bb42d5631a8ce508c14c1309882dad9ce389 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
index 26e1709f10f638d9a1dae3eda97d130f3c81113a..ec88a0318e0f33ed4d8b106b6f9ee7719f8473f7 100644 (file)
@@ -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
 
index b08c7eee42051c4cef52cf7b27b60cac2d799743..7bfe4c5ff7aba9343158319fed3b1f9025525680 100644 (file)
@@ -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