# HG changeset patch # User Eric Blake # Date 1293819175 25200 # Node ID d39d9d84e5e234eb95830a0125a844c54e50b652 # Parent 498997a431eeb3d97f457c1c84d61bf464a000e0 ftello: avoid compilation failure with SunStudio c89 * lib/ftello.c (ftello): Use lseek, not llseek. Signed-off-by: Eric Blake diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2010-12-31 Eric Blake + ftello: avoid compilation failure with SunStudio c89 + * lib/ftello.c (ftello): Use lseek, not llseek. + tests: avoid failing coreutils tests on cygwin * tests/init.sh (find_exe_basenames_): Exempt [.exe. (create_exe_shims_): Return 0 when skipping. diff --git a/lib/ftello.c b/lib/ftello.c --- a/lib/ftello.c +++ b/lib/ftello.c @@ -50,7 +50,7 @@ ftello (fp); /* Compute the file position ourselves. */ - pos = llseek (fileno (fp), (off_t) 0, SEEK_CUR); + pos = lseek (fileno (fp), (off_t) 0, SEEK_CUR); if (pos >= 0) { if ((fp_->_flag & _IONBF) == 0 && fp_->_base != NULL)