0002-cf-largefile.m4-Fix-build-with-autoconf-2.72.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. From 1b57b62d82a478c1fade350f0fb1d57031a8734e Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd@kuhls.net>
  3. Date: Sat, 10 Feb 2024 09:33:48 +0100
  4. Subject: [PATCH] cf/largefile.m4: Fix build with autoconf-2.72
  5. Fixes https://github.com/heimdal/heimdal/issues/1201
  6. Upstream: https://github.com/heimdal/heimdal/commit/1b57b62d82a478c1fade350f0fb1d57031a8734e
  7. Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
  8. ---
  9. cf/largefile.m4 | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/cf/largefile.m4 b/cf/largefile.m4
  12. index 5c54897be4..cdbbc55431 100644
  13. --- a/cf/largefile.m4
  14. +++ b/cf/largefile.m4
  15. @@ -10,7 +10,7 @@ dnl with generated code, such as lex
  16. if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
  17. CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
  18. fi
  19. -if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then
  20. +if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no && test -n "$ac_cv_sys_file_offset_bits"; then
  21. CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  22. fi
  23. ])