]> git.proxmox.com Git - mirror_lxc.git/commitdiff
macro: move MAX_GRBUF_SIZE
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 7 Dec 2020 10:25:58 +0000 (11:25 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 7 Dec 2020 10:25:58 +0000 (11:25 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/macro.h
src/lxc/utils.h

index d6b9954e8d667c0bf6260f2c88c4817d115ca87e..c8e810a3dc3d4544c2c3a7ef807d04cdfe0f8684 100644 (file)
 #define PATH_MAX 4096
 #endif
 
+#ifndef MAX_GRBUF_SIZE
+#define MAX_GRBUF_SIZE 65536
+#endif
+
 #define INT64_FMT "%" PRId64
 
 /* Define __S_ISTYPE if missing from the C library. */
index ddd1cbe62077a581f8d516b88c4787a998467f22..4825599c4e0186c4765127bd1d092fe69a4e5424 100644 (file)
@@ -6,10 +6,6 @@
 /* Properly support loop devices on 32bit systems. */
 #define _FILE_OFFSET_BITS 64
 
-#ifndef MAX_GRBUF_SIZE
-#define MAX_GRBUF_SIZE 65536
-#endif
-
 #include <errno.h>
 #include <linux/loop.h>
 #include <linux/types.h>