build: move _FILE_OFFSET_BITS to common option

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2021-11-02 10:57:24 +01:00
parent b0dec2ced0
commit 5bd35027d3
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D
2 changed files with 1 additions and 3 deletions

View File

@ -24,6 +24,7 @@ conf.set('PROJECT_VERSION', meson.project_version(),
description : 'Numerical project version (used where a simple number is expected)') description : 'Numerical project version (used where a simple number is expected)')
conf.set('PACKAGE_VERSION', meson.project_version()) conf.set('PACKAGE_VERSION', meson.project_version())
conf.set('_GNU_SOURCE', true) conf.set('_GNU_SOURCE', true)
conf.set('_FILE_OFFSET_BITS', 64)
conf.set('__STDC_FORMAT_MACROS', true) conf.set('__STDC_FORMAT_MACROS', true)
version_data = configuration_data() version_data = configuration_data()

View File

@ -3,9 +3,6 @@
#ifndef __LXC_UTILS_H #ifndef __LXC_UTILS_H
#define __LXC_UTILS_H #define __LXC_UTILS_H
/* Properly support loop devices on 32bit systems. */
#define _FILE_OFFSET_BITS 64
#include <errno.h> #include <errno.h>
#include <linux/loop.h> #include <linux/loop.h>
#include <linux/types.h> #include <linux/types.h>