From: Eric Blake Date: Fri, 31 Dec 2010 18:12:55 +0000 (-0700) Subject: ftello: avoid compilation failure with SunStudio c89 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c9c8f5a430add1334080ff4e68233853a019816;p=pspp 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 index 5eff45bab7..0821c98ee6 100644 --- 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 index 098e36ae58..864ff1cd0b 100644 --- a/lib/ftello.c +++ b/lib/ftello.c @@ -50,7 +50,7 @@ ftello (FILE *fp) 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)