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.

This commit is contained in:
Stephen Smalley 2009-05-06 08:19:17 -04:00
parent a07493d1a1
commit 7610baa968
1 changed files with 2 additions and 0 deletions

View File

@ -348,7 +348,9 @@ int selinux_init_load_policy(int *enforce)
fclose(cfg); fclose(cfg);
free(buf); free(buf);
} }
#ifndef MNT_DETACH
#define MNT_DETACH 2 #define MNT_DETACH 2
#endif
if (rc == 0) if (rc == 0)
umount2("/proc", MNT_DETACH); umount2("/proc", MNT_DETACH);