1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r22826: Fix the gettimeofday test that I broke in rev 22821.

(This used to be commit 74ca199205)
This commit is contained in:
James Peach 2007-05-13 15:45:50 +00:00 committed by Gerald (Jerry) Carter
parent 232b2d8349
commit 2cfc91a11c

View 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