From 1c9c8f5a430add1334080ff4e68233853a019816 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 31 Dec 2010 11:12:55 -0700 Subject: [PATCH] ftello: avoid compilation failure with SunStudio c89 * lib/ftello.c (ftello): Use lseek, not llseek. Signed-off-by: Eric Blake --- ChangeLog | 3 +++ lib/ftello.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5eff45bab..0821c98ee 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 098e36ae5..864ff1cd0 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) -- 2.11.0