]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
build: move _FILE_OFFSET_BITS to common option
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Nov 2021 09:57:24 +0000 (10:57 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Nov 2021 10:14:58 +0000 (11:14 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
meson.build
src/lxc/utils.h

index 19b3abbc1d392529285245628dbed4d95d8b34c8..f038fe4c56b21d9038a8790ebc141378a0bf037a 100644 (file)
@@ -24,6 +24,7 @@ conf.set('PROJECT_VERSION',    meson.project_version(),
          description : 'Numerical project version (used where a simple number is expected)')
 conf.set('PACKAGE_VERSION',    meson.project_version())
 conf.set('_GNU_SOURCE', true)
+conf.set('_FILE_OFFSET_BITS', 64)
 conf.set('__STDC_FORMAT_MACROS', true)
 
 version_data = configuration_data()
index 161555e6f6ca952b523e978a9f3d3495776527a7..7b101726505968569066483f10d274af0543f0d9 100644 (file)
@@ -3,9 +3,6 @@
 #ifndef __LXC_UTILS_H
 #define __LXC_UTILS_H
 
-/* Properly support loop devices on 32bit systems. */
-#define _FILE_OFFSET_BITS 64
-
 #include <errno.h>
 #include <linux/loop.h>
 #include <linux/types.h>