summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-02-26 11:24:21 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-02-28 13:36:26 +0100
commite91700286ff531f344f4d9a1f1c96c501bfeadad (patch)
tree986bebe7236aa71668eb57900e5438bb7a34aec6 /include/common.h
parent7170a28d46d5db1e7a9da24a5555a194a233ef0b (diff)
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 <s.hauer@pengutronix.de> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h2
1 files changed, 0 insertions, 2 deletions
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 <unistd.h>
#include <sys/sysmacros.h>
-#include "config.h"
-
#ifndef PROGRAM_NAME
# error "You must define PROGRAM_NAME before including this header"
#endif