]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix year 2038 code for Android 4.4 and earlier
authorPo Lu <luangruo@yahoo.com>
Mon, 15 May 2023 03:31:16 +0000 (11:31 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 15 May 2023 03:31:16 +0000 (11:31 +0800)
* configure.ac: Also disable enable_year2038.

configure.ac

index 65609ec80218513af42406f4eec35ad39cef536e..2a2d31bb72dee0f9df0d52c38fb41555badd7adb 100644 (file)
@@ -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,