Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
now using autoheader as well as autoconf
[rsync/rsync.git]
/
syscall.c
diff --git
a/syscall.c
b/syscall.c
index
a004d9d
..
c6fd354
100644
(file)
--- a/
syscall.c
+++ b/
syscall.c
@@
-128,8
+128,18
@@
int do_fstat(int fd, STRUCT_STAT *st)
OFF_T do_lseek(int fd, OFF_T offset, int whence)
{
#if HAVE_OFF64_T
OFF_T do_lseek(int fd, OFF_T offset, int whence)
{
#if HAVE_OFF64_T
+ off64_t lseek64();
return lseek64(fd, offset, whence);
#else
return lseek(fd, offset, whence);
#endif
}
return lseek64(fd, offset, whence);
#else
return lseek(fd, offset, whence);
#endif
}
+
+char *d_name(struct dirent *di)
+{
+#if HAVE_BROKEN_READDIR
+ return (di->d_name - 2);
+#else
+ return di->d_name;
+#endif
+}