diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-11-20 22:25:06 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-11-29 23:38:51 -0800 |
commit | 2a7c405b01fb6c89664fe15554d96854efb3f837 (patch) | |
tree | ee58fcb75e6cae2b064f1779b97e4db6138e14f2 /lib/se-selinux.c | |
parent | 1615c2e6bca01fbc7355043d2218c7c1dce453f5 (diff) | |
download | gnulib-2a7c405b01fb6c89664fe15554d96854efb3f837.tar.gz |
selinux-h: better 'inline'
* lib/se-context.c, lib/se-selinux.c: New files.
* lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
* lib/se-context.in.h (SE_CONTEXT_INLINE):
New macro. Replace all uses of 'static inline' with it.
Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
* lib/se-selinux.in.h (SE_SELINUX_INLINE):
New macro. Replace all uses of 'static inline' with it.
Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
* modules/selinux-h (Files, lib_SOURCES):
Add lib/se-context.c, lib/se-selinux.c.
(Depends-on): Add extern-inline.
(configure.ac): Do not require AC_C_INLINE.
Diffstat (limited to 'lib/se-selinux.c')
-rw-r--r-- | lib/se-selinux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/se-selinux.c b/lib/se-selinux.c new file mode 100644 index 0000000000..ee4e57fc03 --- /dev/null +++ b/lib/se-selinux.c @@ -0,0 +1,3 @@ +#include <config.h> +#define SE_SELINUX_INLINE _GL_EXTERN_INLINE +#include <selinux/selinux.h> |