After c919d561adaf152d9b8834475539e2366c8aa484 umount.c fails to build
with glibc 2.9 and earlier as MNT_DETACH is undefined.

Signed-off-by: Veli-Pekka Peltola <[email protected]>
---
 util-linux/umount.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/util-linux/umount.c b/util-linux/umount.c
index 0091097..9fa82a5 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -44,6 +44,11 @@ static struct mntent *getmntent_r(FILE* stream, struct 
mntent* result,
 }
 #endif
 
+/* glibc 2.9 and earlier needs this */
+#ifndef MNT_DETACH
+#define MNT_DETACH 0x00000002
+#endif
+
 /* Ignored: -v -t -i
  * bbox always acts as if -d is present.
  * -D can be used to suppress it (bbox extension).
-- 
2.7.3

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to