diff --git a/include/libbb.h b/include/libbb.h
index 82484f9..3650c7d 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -172,6 +172,9 @@ int klogctl(int type, char *b, int len);
 # define BUFSIZ 4096
 #endif
 
+#ifndef MNT_DETACH
+# define MNT_DETACH 2
+#endif
 
 /* Busybox does not use threads, we can speed up stdio. */
 #ifdef HAVE_UNLOCKED_STDIO
diff --git a/init/bootchartd.c b/init/bootchartd.c
index c7388c9..906269d 100644
--- a/init/bootchartd.c
+++ b/init/bootchartd.c
@@ -55,9 +55,6 @@
 # ifndef MS_SILENT
 #  define MS_SILENT      (1 << 15)
 # endif
-# ifndef MNT_DETACH
-#  define MNT_DETACH 0x00000002
-# endif
 #endif
 
 #if !ENABLE_TAR && !ENABLE_WERROR
