X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/b17bc22bb3fc0c64092f31a31acbe21947c775ab..3060d4aa1d5586c085aaec108ac6ced094304322:/lib/compat.c diff --git a/lib/compat.c b/lib/compat.c index 8580fdb9..b1e386a0 100644 --- a/lib/compat.c +++ b/lib/compat.c @@ -161,3 +161,13 @@ return 1; } #endif + +/* some systems don't take the 2nd argument */ +int sys_gettimeofday(struct timeval *tv) +{ +#if HAVE_GETTIMEOFDAY_TZ + return gettimeofday(tv, NULL); +#else + return gettimeofday(tv); +#endif +}