X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f0fca04e4e136c4a487a922e8fb09acf46aeafa0..e1b3d5c4be46ee0b17a98aa48cb7cb152c4a008b:/syscall.c diff --git a/syscall.c b/syscall.c index c655969e..16d0a964 100644 --- a/syscall.c +++ b/syscall.c @@ -149,6 +149,17 @@ OFF_T do_lseek(int fd, OFF_T offset, int whence) #endif } +#ifdef USE_MMAP +void *do_mmap(void *start, int len, int prot, int flags, int fd, OFF_T offset) +{ +#if HAVE_OFF64_T + return mmap64(start, len, prot, flags, fd, offset); +#else + return mmap(start, len, prot, flags, fd, offset); +#endif +} +#endif + char *d_name(struct dirent *di) { #if HAVE_BROKEN_READDIR