[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lseek always include windows.h?
From: |
Eric Blake |
Subject: |
Re: lseek always include windows.h? |
Date: |
Tue, 5 Jun 2007 13:54:29 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Simon Josefsson <simon <at> josefsson.org> writes:
> : undefined reference to `main'
>
> Presumably that the test case doesn't build for non-Windows
> cross-compilations. I haven't tested this patch, but will do so soon:
Or this simpler patch, which I'm committing.
2007-06-05 Eric Blake <address@hidden>
* m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
Reported by Simon Josefsson.
Index: m4/lseek.m4
===================================================================
RCS file: /sources/gnulib/gnulib/m4/lseek.m4,v
retrieving revision 1.2
diff -u -p -b -r1.2 lseek.m4
--- m4/lseek.m4 28 May 2007 12:56:52 -0000 1.2
+++ m4/lseek.m4 5 Jun 2007 13:54:08 -0000
@@ -28,7 +28,7 @@ int main ()
fi],
[gl_cv_func_lseek_pipe=no])
else
- AC_LINK_IFELSE([
+ AC_COMPILE_IFELSE([
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
/* mingw mistakenly returns 0 when trying to seek on pipes. */
Choke me.