[PATCH][RFC] Enable LFS support for libcpp and gcc

Paolo Bonzini bonzini@gnu.org
Fri Feb 13 12:01:00 GMT 2009


> Oh.  I wonder if we can rely on that being available?  It's at least
> not used in gcc anywhere.  I see, in 2003:

>From gnulib:

<<<
This function is missing on some platforms:  IRIX 5.3, OSF/1 4.0,
Solaris 2.5.1, mingw.  [My note: Solaris 2.5.1 is from 1996 and the
other two are older; mingw is a problem].

The declaration of @code{fseeko} in @code{<stdio.h>} is not enabled by
default on some platforms: glibc 2.3.6.  [Not a problem?  Suggests
configury can work around it?]

This function fails on seekable stdin, stdout, and stderr: cygwin <= 1.5.24.
>>>


I suppose that this should work in configure.ac for the sake of mingw:

AC_CHECK_FUNC([fseeko], [],
  [AC_DEFINE([fseeko], [fseek],
    [Define to fseek if fseeko is not available on this platform.])
  AC_DEFINE([ftello], [ftell],
    [Define to ftell if ftello is not available on this platform.])])

Paolo



More information about the Gcc-patches mailing list