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