From: Wayne Davison Date: Thu, 23 Sep 2004 16:00:44 +0000 (+0000) Subject: Assume that gettimeofday() takes two arguments when cross-compiling. X-Git-Tag: v2.6.3~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a20a88d2351f50d4aff38ef3b9b32f6379eee719;p=thirdparty%2Frsync.git Assume that gettimeofday() takes two arguments when cross-compiling. --- diff --git a/configure.in b/configure.in index b910f073..7d673f7c 100644 --- a/configure.in +++ b/configure.in @@ -543,7 +543,7 @@ AC_TRY_RUN([ #include main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}], rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes,rsync_cv_HAVE_GETTIMEOFDAY_TZ=no,rsync_cv_HAVE_GETTIMEOFDAY_TZ=cross)]) -if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then +if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [ ]) fi