umount: build fix for older glibc
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 28 Mar 2016 20:23:33 +0000 (22:23 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 28 Mar 2016 20:23:33 +0000 (22:23 +0200)
Based on a patch by Veli-Pekka Peltola <veli-pekka.peltola@ray.fi>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/umount.c

index 00910977d5c91035ab7af91c98128ce923ab7827..30bef1686a6223488ab8a68026a23bfe78e16957 100644 (file)
@@ -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__)