diff --git a/doc/Changelog b/doc/Changelog index 4cc6afb..51163ad 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -29,6 +29,8 @@ sysvinit (2.88dsf) UNRELEASED; urgency=low to disk using fdatasync(). Patch from Scott Gifford via Debian. * Add compatibility code to handle old path "/etc/powerstatus" for a while. + * Incude definition for MNT_DETACH which is missing in older GNU libc + headers. [ Werner Fink ] * Add the comment from Andrea Arcangeli about the correct diff --git a/src/init.c b/src/init.c index 7b414f0..29f3ebb 100644 --- a/src/init.c +++ b/src/init.c @@ -55,6 +55,9 @@ #ifdef WITH_SELINUX # include # include +# ifndef MNT_DETACH /* present in glibc 2.10, missing in 2.7 */ +# define MNT_DETACH 2 +# endif #endif #ifdef __i386__