Complicate the lseek64() function prototype because some systems
authorWayne Davison <wayned@samba.org>
Sat, 3 Sep 2005 16:56:53 +0000 (16:56 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 3 Sep 2005 16:56:53 +0000 (16:56 +0000)
don't have off64_t.

syscall.c

index 48c7e9013cb61d0005f2b4124f33a1224b0a9de2..117b10a075af06b3d6aef37682215e92fe01ae21 100644 (file)
--- 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);