From 13d0215c541a6291c5fef3fcd895882d43d5518a Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Tue, 16 Jun 2026 14:46:08 +0100 Subject: [PATCH] configure: pass year2038 flags in CPPFLAGS --- cf/largefile.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cf/largefile.m4 b/cf/largefile.m4 index 6f20fc83c..170f15bd4 100644 --- a/cf/largefile.m4 +++ b/cf/largefile.m4 @@ -19,4 +19,10 @@ if test "$enable_largefile" != no; then [CPPFLAGS="$CPPFLAGS $ac_cv_sys_largefile_opts"]) fi fi +if test "$enable_year2038" != no; then + if test -n "$ac_cv_sys_year2038_opts"; then + AS_CASE([$ac_cv_sys_year2038_opts],[-D_TIME_BITS=*|-D__MINGW_USE_VC2005_COMPAT], + [CPPFLAGS="$CPPFLAGS $ac_cv_sys_year2038_opts"]) + fi +fi ])