summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-03-28 22:23:33 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-03-28 22:23:33 +0200
commit31c984dd6904a11b655879b3ad927bd9bf639192 (patch)
treeda8450fd309d9153efbc537480a5e22cfdf9b7ea
parent2fb63292f7083fb259a3f8d8ee70ef8acdaed626 (diff)
umount: build fix for older glibc
Based on a patch by Veli-Pekka Peltola <veli-pekka.peltola@ray.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/umount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 00910977d..30bef1686 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -30,6 +30,9 @@
#include <mntent.h>
#include <sys/mount.h>
+#ifndef MNT_DETACH
+# define MNT_DETACH 0x00000002
+#endif
#include "libbb.h"
#if defined(__dietlibc__)