date.c: Add hard-coded definition of HAVE_TIMEZONE
authorCarl Worth <cworth@cworth.org>
Mon, 19 Oct 2009 20:19:37 +0000 (13:19 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 19 Oct 2009 20:19:37 +0000 (13:19 -0700)
The original code expected this to be set by running configure.
We'll just manually set it here for now. This isn't as portable
as if we were doing some compile-time examination of the current
system, but I don't need portability now.

When someone comes along that wants to port notmuch to another
system, they will already have all the #ifdefs in place and
will simply need to add the appropriate machinery to set the
defines.

date.c

diff --git a/date.c b/date.c
index 514f84046ab2998fc36dcd4915f8dab69aa3fc32..ff1e1a6ac7671f2e88670ea866fd56db6a7af672 100644 (file)
--- a/date.c
+++ b/date.c
@@ -363,6 +363,8 @@ get_tzone (date_token **token)
        return -1;
 }
 
+#define HAVE_TIMEZONE
+
 static time_t
 mktime_utc (struct tm *tm)
 {