Control: tag -1 + patch
Hi Andreas,
Andreas Hasenack wrote:
> This fixes the build:
>
> --- a/configure.ac
> +++ b/configure.ac
> @@ -852,6 +852,7 @@ fi
>
> AC_CACHE_CHECK([if gettimeofday takes tz
> argument],rsync_cv_HAVE_GETTIMEOFDAY_TZ,[
> AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>
> +#include <stdlib.h>
> #include <unistd.h>]], [[struct timeval tv; exit(gettimeofday(&tv,
> NULL));]])],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=no])])
> if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
> AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [Define to 1 if gettimeofday()
> takes a time-zone arg])
Thanks a lot! I was always trying to add that include line into actual
C files. It didn't occur to me that I need to add it to configure.
Regards, Axel
--
,''`. | Axel Beckert <[email protected]>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE