From 0647f3eb5aeaa783ce21ddee268367d2ba7248df Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 2 Jun 2008 21:17:57 +0200 Subject: accommodate older SELinux which lacks matchpathcon_init_prefix * m4/jm-macros.m4: Check for matchpathcon_init_prefix. * src/install.c [!HAVE_MATCHPATHCON_INIT_PREFIX] (matchpathcon_init_prefix): Define away. * gl/lib/se-selinux.in.h (matchpathcon_init_prefix): Define. Reported by Ilya N. Golubev in . --- src/install.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/install.c') diff --git a/src/install.c b/src/install.c index 1d902d6ee..decdd7d36 100644 --- a/src/install.c +++ b/src/install.c @@ -66,6 +66,10 @@ static bool use_default_selinux_context = true; # define lchown(name, uid, gid) chown (name, uid, gid) #endif +#if ! HAVE_MATCHPATHCON_INIT_PREFIX +# define matchpathcon_init_prefix(a, p) /* empty */ +#endif + /* Initial number of entries in each hash table entry's table of inodes. */ #define INITIAL_HASH_MODULE 100 -- cgit v1.2.3-54-g00ecf