]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Dec 2006 23:54:25 +0000 (23:54 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Dec 2006 23:54:25 +0000 (23:54 +0000)
can be assigned to a function pointer.  Problem reported by
Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
part of a patch by Ralf Wildenhues in that same bug report.

ChangeLog
lib/autoconf/functions.m4

index 3214b041ddae5a4eef93a86ec1df3d7eba402194..bb6f50a437536b7468bf8997048e655a8cd82eef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
+       can be assigned to a function pointer.  Problem reported by
+       Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
+       part of a patch by Ralf Wildenhues in that same bug report.
+
 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
 
        * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
index 440b886d18838e4f51230c842b45e4703058cc80..57b42677740b8d9005be71278805155ff17bff9a 100644 (file)
@@ -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 <stdio.h>],
-   [[return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);]])
+   [[#include <sys/types.h> /* for off_t */
+     #include <stdio.h>]],
+   [[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.