aboutsummaryrefslogtreecommitdiffstats
path: root/syscall.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-09-03 16:56:53 +0000
committerWayne Davison <wayned@samba.org>2005-09-03 16:56:53 +0000
commitf853b777bead34e8638feaee776b8b12d47dbef5 (patch)
treec60e2e3805d2a4396b236216136bbcdb5fe21a69 /syscall.c
parentfed1f3f4fe6e91c64912eb3dfb6a095735b5da6e (diff)
downloadandroid_external_rsync-f853b777bead34e8638feaee776b8b12d47dbef5.tar.gz
android_external_rsync-f853b777bead34e8638feaee776b8b12d47dbef5.tar.bz2
android_external_rsync-f853b777bead34e8638feaee776b8b12d47dbef5.zip
Complicate the lseek64() function prototype because some systems
don't have off64_t.
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/syscall.c b/syscall.c
index 48c7e901..117b10a0 100644
--- a/syscall.c
+++ b/syscall.c
@@ -255,7 +255,11 @@ int do_fstat(int fd, STRUCT_STAT *st)
OFF_T do_lseek(int fd, OFF_T offset, int whence)
{
#ifdef HAVE_LSEEK64
+#if !SIZEOF_OFF64_T
+ OFF_T lseek64();
+#else
off64_t lseek64();
+#endif
return lseek64(fd, offset, whence);
#else
return lseek(fd, offset, whence);