changeset 14064:d39d9d84e5e2

ftello: avoid compilation failure with SunStudio c89 * lib/ftello.c (ftello): Use lseek, not llseek. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Fri, 31 Dec 2010 11:12:55 -0700
parents 498997a431ee
children b6d1c24a0c4e
files ChangeLog lib/ftello.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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)