Instead of re-defining MS_ options all over the place, just revert the
last change to bdev.h so we have all the defines in there again.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
#define LO_FLAGS_AUTOCLEAR 4
#endif
-#ifndef MS_REC
-#define MS_REC 16384
-#endif
-
-#ifndef MS_SLAVE
-#define MS_SLAVE (1<<19)
-#endif
-
#define DEFAULT_FS_SIZE 1073741824
#define DEFAULT_FSTYPE "ext3"
#include <stdint.h>
#include <lxc/lxccontainer.h>
+
+/* define constants if the kernel/glibc headers don't define them */
+#ifndef MS_DIRSYNC
+#define MS_DIRSYNC 128
+#endif
+
+#ifndef MS_REC
+#define MS_REC 16384
+#endif
+
+#ifndef MNT_DETACH
+#define MNT_DETACH 2
+#endif
+
+#ifndef MS_SLAVE
+#define MS_SLAVE (1<<19)
+#endif
+
+#ifndef MS_RELATIME
+#define MS_RELATIME (1 << 21)
+#endif
+
+#ifndef MS_STRICTATIME
+#define MS_STRICTATIME (1 << 24)
+#endif
+
struct bdev;
struct bdev_ops {
#include <mntent.h>
#endif
-#ifndef MS_RELATIME
-#define MS_RELATIME (1<<21)
-#endif
-
struct cgroup_hierarchy;
struct cgroup_meta_data;
struct cgroup_mount_point;