ac-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in AC_VAR_TIMEZONE_EXTERNALS


From: Laurent Rineau
Subject: Bug in AC_VAR_TIMEZONE_EXTERNALS
Date: Fri, 06 Aug 2004 15:28:04 +0200
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040225

On FreeBSD, timezone is a function:

   char *timezone(int, int);

and the test AC_VAR_TIMEZONE_EXTERNALS returns with success whereas timezone is not a variable of type compatible with time_t.

I patched it. I transformed:
 AC_TRY_LINK([#include <time.h>], [return (int)timezone;],
to:
 AC_TRY_LINK([#include <time.h>], [return (int)( 0 - timezone );],

Perhaps something less stupid, such as:
 [ time_t t = timezone; ]
should be used.

(Please reply to me as well as to the list, because I am not member of the list.)

--
Laurent Rineau





reply via email to

[Prev in Thread] Current Thread [Next in Thread]