From e91700286ff531f344f4d9a1f1c96c501bfeadad Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 26 Feb 2021 11:24:21 +0100 Subject: mtd-utils: Use AC_SYS_LARGEFILE Currently mtd-utils on 32bit systems fail on devices >2GiB due to off_t being a signed 32bit type. Add AC_SYS_LARGEFILE to make off_t a 64bit type. Adding AC_SYS_LARGEFILE results in _FILE_OFFSET_BITS being defined to 64 in include/config.h. To let this have an effect we must make sure that include/config.h is included before all other includes which is archieved by adding its inclusion to CPPFLAGS. Signed-off-by: Sascha Hauer Signed-off-by: David Oberhollenzer --- include/common.h | 2 -- include/libmissing.h | 2 -- 2 files changed, 4 deletions(-) (limited to 'include') diff --git a/include/common.h b/include/common.h index 7270769..31b6cd1 100644 --- a/include/common.h +++ b/include/common.h @@ -31,8 +31,6 @@ #include #include -#include "config.h" - #ifndef PROGRAM_NAME # error "You must define PROGRAM_NAME before including this header" #endif diff --git a/include/libmissing.h b/include/libmissing.h index 0196033..0fb0cf4 100644 --- a/include/libmissing.h +++ b/include/libmissing.h @@ -1,8 +1,6 @@ #ifndef LIBMISSING_H #define LIBMISSING_H -#include "config.h" - #ifdef HAVE_EXECINFO_H #include #endif -- cgit v1.2.3