From 4247b2a723e5a3a04c4ea71ffc469cb4d9e094b1 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 15 May 2023 11:31:16 +0800 Subject: [PATCH] Fix year 2038 code for Android 4.4 and earlier * configure.ac: Also disable enable_year2038. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 65609ec8021..2a2d31bb72d 100644 --- a/configure.ac +++ b/configure.ac @@ -40,9 +40,9 @@ if test "$XCONFIGURE" = "android"; then CFLAGS="$ANDROID_CFLAGS -Werror=implicit-function-declaration" # Don't explicitly enable support for large files unless Emacs is # being built for API 21 or later. Otherwise, mmap does not work. - if test "$ANDROID_SDK" -lt "21"; then + AS_IF([test "$ANDROID_SDK" -lt "21"], [ enable_largefile=no - fi + enable_year2038=no]) fi dnl Set emacs_config_options to the options of 'configure', quoted for the shell, -- 2.39.2