From 7610baa968ad499667c60c222cba326b737c532a Mon Sep 17 00:00:00 2001 From: Stephen Smalley Date: Wed, 6 May 2009 08:19:17 -0400 Subject: [PATCH] Trivial: Wrap the #define MNT_DETACH with #ifndef MNT_DETACH...#endif so that it does not break with the latest glibc headers, as in F11/rawhide. --- libselinux/src/load_policy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libselinux/src/load_policy.c b/libselinux/src/load_policy.c index affe37b8..a3a28a0c 100644 --- a/libselinux/src/load_policy.c +++ b/libselinux/src/load_policy.c @@ -348,7 +348,9 @@ int selinux_init_load_policy(int *enforce) fclose(cfg); free(buf); } +#ifndef MNT_DETACH #define MNT_DETACH 2 +#endif if (rc == 0) umount2("/proc", MNT_DETACH);