From: Paul Eggert Date: Mon, 4 Dec 2006 23:54:25 +0000 (+0000) Subject: * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko X-Git-Tag: AUTOCONF-2.61a~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0c325537a22105536ac8c4e88656e50f9946486;p=thirdparty%2Fautoconf.git * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko can be assigned to a function pointer. Problem reported by Peter Palfrader in . Based on part of a patch by Ralf Wildenhues in that same bug report. --- diff --git a/ChangeLog b/ChangeLog index 3214b041..bb6f50a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-12-04 Paul Eggert + + * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko + can be assigned to a function pointer. Problem reported by + Peter Palfrader in . Based on + part of a patch by Ralf Wildenhues in that same bug report. + 2006-12-01 Paul Eggert * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED. diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index 440b886d..57b42677 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -587,8 +587,10 @@ AC_DEFUN([AC_FUNC_FSEEKO], [_AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1, [ac_cv_sys_largefile_source], [Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).], - [@%:@include ], - [[return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);]]) + [[#include /* for off_t */ + #include ]], + [[int (*fp) (FILE *, off_t, int) = fseeko; + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);]]) # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug # in glibc 2.1.3, but that breaks too many other things.