bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mingw lseek bug


From: Bruno Haible
Subject: Re: mingw lseek bug
Date: Mon, 28 May 2007 16:27:39 +0200
User-agent: KMail/1.5.4

Eric Blake wrote:
> > --- 9,40 ----
> >     AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
> >     AC_REQUIRE([AC_PROG_CC])
> >     AC_CACHE_CHECK([whether lseek detects pipes], [gl_cv_func_lseek_pipe],
> > !     [if test $cross_compiling = no; then
> > !        AC_LINK_IFELSE([
> > ! #include <sys/types.h> /* for off_t */
> 
> Isn't this redundant...
> 
> > ! #include <stdio.h> /* for SEEK_CUR */
> > ! #include <unistd.h>
> 
> ... since unistd.h must also provide off_t?

It doesn't on mingw. Without #include <sys/types.h>, the test fails on mingw,
as expected, but not for the real reason...

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]