r22826: Fix the gettimeofday test that I broke in rev 22821.
authorJames Peach <jpeach@samba.org>
Sun, 13 May 2007 15:45:50 +0000 (15:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:00 +0000 (12:22 -0500)
source/configure.in

index d4fe277fb4444dc8d150837ed1d99444e7a519d9..21f4e06423ff186d5d1ca27e01ec236fbd6fd7b6 100644 (file)
@@ -2216,12 +2216,11 @@ fi
 AC_CACHE_CHECK([if gettimeofday takes tz argument],samba_cv_HAVE_GETTIMEOFDAY_TZ,[
 AC_TRY_LINK([
 #include <sys/time.h>
-#include <unistd.h>], [
-int main() { struct timeval tv; return gettimeofday(&tv, NULL);}],
+#include <unistd.h>], [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