From: Sam James Date: Mon, 5 Feb 2024 23:23:21 +0000 (+0000) Subject: build: Request 64-bit time_t where possible X-Git-Tag: v6.7.0~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9dae86dce18093e30f67590e23cacafa76ce0011;p=thirdparty%2Fxfsprogs-dev.git build: Request 64-bit time_t where possible Suggested by Darrick during LFS review. We take the same approach as in 5c0599b721d1d232d2e400f357abdf2736f24a97 ('Fix building xfsprogs on 32-bit platforms') to avoid autoconf hell - just take the tried & tested approach which is working fine for us with LFS already. Reviewed-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig Signed-off-by: Sam James Signed-off-by: Carlos Maiolino --- diff --git a/include/builddefs.in b/include/builddefs.in index a3745efb..abb141d4 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -13,8 +13,8 @@ OPTIMIZER = @opt_build@ MALLOCLIB = @malloc_lib@ LOADERFLAGS = @LDFLAGS@ LTLDFLAGS = @LDFLAGS@ -CFLAGS = @CFLAGS@ -D_FILE_OFFSET_BITS=64 -Wno-address-of-packed-member -BUILD_CFLAGS = @BUILD_CFLAGS@ -D_FILE_OFFSET_BITS=64 +CFLAGS = @CFLAGS@ -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wno-address-of-packed-member +BUILD_CFLAGS = @BUILD_CFLAGS@ -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 # make sure we don't pick up whacky LDFLAGS from the make environment and # only use what we calculate from the configured options above.