Mercurial > hg > octave-nkf > gnulib-hg
comparison lib/se-context.in.h @ 10695:24d0f9902f09
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.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Tue, 21 Oct 2008 17:18:53 +0200 |
parents | b2b4c17db720 |
children | c1444c2ed476 |
comparison
equal
deleted
inserted
replaced
10694:b2b4c17db720 | 10695:24d0f9902f09 |
---|---|
1 #ifndef SELINUX_CONTEXT_H | 1 #ifndef SELINUX_CONTEXT_H |
2 # define SELINUX_CONTEXT_H | 2 # define SELINUX_CONTEXT_H |
3 | 3 |
4 # include <errno.h> | 4 # include <errno.h> |
5 /* Some systems don't have ENOTSUP. */ | |
6 # ifndef ENOTSUP | |
7 # ifdef ENOSYS | |
8 # define ENOTSUP ENOSYS | |
9 # else | |
10 /* Some systems don't have ENOSYS either. */ | |
11 # define ENOTSUP EINVAL | |
12 # endif | |
13 # endif | |
14 | 5 |
15 typedef int context_t; | 6 typedef int context_t; |
16 static inline context_t context_new (char const *s) | 7 static inline context_t context_new (char const *s) |
17 { errno = ENOTSUP; return 0; } | 8 { errno = ENOTSUP; return 0; } |
18 static inline char *context_str (context_t con) | 9 static inline char *context_str (context_t con) |