[PATCH] Fix umount compilation with glibc 2.9 and earlier
Veli-Pekka Peltola
veli-pekka.peltola at ray.fi
Thu Mar 24 14:42:31 UTC 2016
After c919d561adaf152d9b8834475539e2366c8aa484 umount.c fails to build
with glibc 2.9 and earlier as MNT_DETACH is undefined.
Signed-off-by: Veli-Pekka Peltola <veli-pekka.peltola at ray.fi>
---
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
More information about the busybox
mailing list