1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-16 20:33:18 +02:00

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.
This commit is contained in:
Jim Meyering
2007-10-28 19:04:59 +01:00
parent 39e668ce5b
commit 709a27ba48
3 changed files with 16 additions and 12 deletions

View File

@@ -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.

View 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

View 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