Incude definition for MNT_DETACH which is missing in older GNU libc headers.
authorPetter Reinholdtsen <pere@hungry.com>
Sun, 11 Apr 2010 07:42:27 +0000 (07:42 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Sun, 11 Apr 2010 07:42:27 +0000 (07:42 +0000)
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@61 456724a4-4300-0410-8514-c89748c515a2

doc/Changelog
src/init.c

index 4cc6afb59795cdbc5602234bb5a2a78c3f9058d4..51163adb8073e54533b41830f1ce0deba52c4f8e 100644 (file)
@@ -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
index 7b414f066fbedbeb06dcaa1d7d22559eaf2b8959..29f3ebb347cef60d50551c37ec0bec9d9625cf03 100644 (file)
@@ -55,6 +55,9 @@
 #ifdef WITH_SELINUX
 #  include <selinux/selinux.h>
 #  include <sys/mount.h>
+#  ifndef MNT_DETACH /* present in glibc 2.10, missing in 2.7 */
+#    define MNT_DETACH 2
+#  endif
 #endif
 
 #ifdef __i386__