X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/b17bc22bb3fc0c64092f31a31acbe21947c775ab..b0f3f5784c8635fe08d5d8e397f476a0c9ccba66:/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 +}