From: James Peach Date: Sun, 13 May 2007 15:45:50 +0000 (+0000) Subject: r22826: Fix the gettimeofday test that I broke in rev 22821. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~476 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74ca1992056f9a340b3964b17f868a84335333ed;p=thirdparty%2Fsamba.git r22826: Fix the gettimeofday test that I broke in rev 22821. --- diff --git a/source/configure.in b/source/configure.in index d4fe277fb44..21f4e06423f 100644 --- a/source/configure.in +++ b/source/configure.in @@ -2216,12 +2216,11 @@ fi AC_CACHE_CHECK([if gettimeofday takes tz argument],samba_cv_HAVE_GETTIMEOFDAY_TZ,[ AC_TRY_LINK([ #include -#include ], [ -int main() { struct timeval tv; return gettimeofday(&tv, NULL);}], +#include ], [struct timeval tv; return gettimeofday(&tv, NULL);], samba_cv_HAVE_GETTIMEOFDAY_TZ=yes, samba_cv_HAVE_GETTIMEOFDAY_TZ=no)]) if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then - AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available]) + AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday takes a tz argument]) fi if test x"$samba_cv_WITH_PROFILE" = x"yes"; then