diff options
author | Eric Blake <ebb9@byu.net> | 2007-12-01 11:53:07 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2007-12-01 11:53:07 -0700 |
commit | f6db1c2cee50fb3330cac4adf8a1e91f8b649408 (patch) | |
tree | b7b946b54734f22db789d8e3ce1219bf8e240fd1 /m4 | |
parent | 55a55895fdb87c717de595d2784536d9ffc1e59a (diff) | |
download | gnulib-f6db1c2cee50fb3330cac4adf8a1e91f8b649408.tar.gz |
Fix fseeko detection for cygwin 1.5.25.
* m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
accomodate fix in cygwin 1.5.25.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/stdio_h.m4 | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4 index 45e54e2a62..83d48eccf2 100644 --- a/m4/stdio_h.m4 +++ b/m4/stdio_h.m4 @@ -73,13 +73,15 @@ AC_DEFUN([gl_STDIN_LARGE_OFFSET], [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [#if defined __SL64 && defined __SCLE /* cygwin */ /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making - fseeko/ftello needlessly fail. This bug was fixed at the same time - that cygwin started exporting asnprintf (cygwin 1.7.0), so we use - that as a link-time test for cross-compiles rather than building - a runtime test. */ - size_t s; - if (asnprintf (NULL, &s, "")) - return 0; + fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, at the + same time that cygwin fixed the declaration of "long timezone" to no + longer be a macro, so we use that as a compile-time test for + cross-compiles rather than building a runtime test. */ +# define timezonevar +# include <sys/time.h> +# ifdef timezone + choke me +# endif #endif])], [gl_cv_var_stdin_large_offset=yes], [gl_cv_var_stdin_large_offset=no])]) |