ftello: avoid compilation failure with SunStudio c89
authorEric Blake <eblake@redhat.com>
Fri, 31 Dec 2010 18:12:55 +0000 (11:12 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 31 Dec 2010 18:12:55 +0000 (11:12 -0700)
* lib/ftello.c (ftello): Use lseek, not llseek.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/ftello.c

index 5eff45b..0821c98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-12-31  Eric Blake  <eblake@redhat.com>
 
+       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.
index 098e36a..864ff1c 100644 (file)
@@ -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)