]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Move declarations of some constants to where they are needed.
authorChristian Seiler <christian@iwakd.de>
Mon, 20 May 2013 15:54:22 +0000 (17:54 +0200)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 20 May 2013 22:35:44 +0000 (17:35 -0500)
Signed-off-by: Christian Seiler <christian@iwakd.de>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/bdev.h
src/lxc/conf.c

index cc0359250bc0b9dcdaf6a94059d8888117cc537e..d69efd8a722f375bdc71785199a115df5281e5c4 100644 (file)
@@ -54,4 +54,30 @@ struct bdev *bdev_copy(const char *src, const char *oldname, const char *cname,
                        const char *oldpath, const char *lxcpath, const char *bdevtype,
                        int snap, const char *bdevdata, unsigned long newsize);
 void bdev_put(struct bdev *bdev);
+
+/* 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
+
 #endif
index a38015df992981093a40b940d8e7b36eef0b5174..a1aee141fbda9fde3232afa4fdd108bae2407c37 100644 (file)
@@ -93,30 +93,6 @@ lxc_log_define(lxc_conf, lxc);
 #define MAXMTULEN   16
 #define MAXLINELEN  128
 
-#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
-
 #if HAVE_SYS_CAPABILITY_H
 #ifndef CAP_SETFCAP
 #define CAP_SETFCAP 31