view modules/selinux-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 e4584e8c5e4b
line wrap: on
line source

Description:
SELinux-related headers for systems that lack them.

Files:
lib/se-context.in.h
lib/se-selinux.in.h
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

BUILT_SOURCES += $(SELINUX_SELINUX_H)
selinux/selinux.h: se-selinux.in.h
	rm -f $@-t $@
	$(MKDIR_P) selinux
	cp $(srcdir)/se-selinux.in.h $@-t
	chmod a-x $@-t
	mv $@-t $@
MOSTLYCLEANFILES += selinux/selinux.h selinux/selinux.h-t

BUILT_SOURCES += $(SELINUX_CONTEXT_H)
selinux/context.h: se-context.in.h
	rm -f $@-t $@
	$(MKDIR_P) selinux
	cp $(srcdir)/se-context.in.h $@-t
	chmod a-x $@-t
	mv $@-t $@
MOSTLYCLEANFILES += selinux/context.h selinux/context.h-t
MOSTLYCLEANDIRS += selinux

Include:
#include <selinux/selinux.h>
#include <selinux/context.h>

License:
LGPLv2+

Maintainer:
Jim Meyering