Eric Blake wrote: > you are missing the matching change to lseek.m4 when cross-compiling.
Right. Thanks. I commit it with this additional change. 2007-08-19 Bruno Haible <[EMAIL PROTECTED]> Eric Blake <[EMAIL PROTECTED]> * lib/lseek.c: Include <sys/stat.h>. (rpl_lseek): Add workaround code also for Unix platforms. Needed for BeOS. * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS. * doc/functions/lseek.texi: Document BeOS definiency. --- m4/lseek.m4 5 Jun 2007 13:58:16 -0000 1.3 +++ m4/lseek.m4 19 Aug 2007 09:08:06 -0000 1.4 @@ -1,4 +1,4 @@ -# lseek.m4 serial 3 +# lseek.m4 serial 4 dnl Copyright (C) 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -29,8 +29,8 @@ [gl_cv_func_lseek_pipe=no]) else AC_COMPILE_IFELSE([ -#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ -/* mingw mistakenly returns 0 when trying to seek on pipes. */ +#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__ +/* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */ Choke me. #endif], [gl_cv_func_lseek_pipe=yes], [gl_cv_func_lseek_pipe=no])