From e3f801c2e852fde0780aee9c375070cde878d5c0 Mon Sep 17 00:00:00 2001 From: Greg V Date: Fri, 18 May 2018 02:52:11 +0300 Subject: [PATCH] Disable lfs on FreeBSD It has the off64_t type, but none of the legacy *64 functions. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 1e3b094..4a30d37 100644 --- a/configure.ac +++ b/configure.ac @@ -74,6 +74,11 @@ AM_CONDITIONAL(CPU_X86_64, test "$CPU" = "x86_64") AC_MSG_CHECKING([for off64_t]) AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]],[[off64_t n=0;]])],[has_lfs="yes"],[has_lfs="no"]) +case "$host" in + *-*-freebsd*) # has off64_t but no fopen64/etc. + has_lfs="no" + ;; +esac AC_MSG_RESULT($has_lfs) #AC_MSG_CHECKING([for libz])