summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-08-06 08:21:51 +0000
committerRichard M. Stallman <rms@gnu.org>1996-08-06 08:21:51 +0000
commit94ae7bb1a1d79025314e857c126ac71f5c9c549b (patch)
tree1c19b6d2bdf8d4a276642e96c49aad27a556f911
parent91e2bd713a8420e8abb8844b2d36e32bc66dc89e (diff)
downloademacs-94ae7bb1a1d79025314e857c126ac71f5c9c549b.tar.gz
(LOCALTIME_CACHE): Don't put a string literal "TZ=..." in environ.
-rw-r--r--configure.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 17832a3071a..960bf51de90 100644
--- a/configure.in
+++ b/configure.in
@@ -1438,16 +1438,18 @@ unset_TZ ()
if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
to++;
}
+char TZ_GMT0[] = "TZ=GMT0";
+char TZ_PST8[] = "TZ=PST8";
main()
{
time_t now = time ((time_t *) 0);
int hour_GMT0, hour_unset;
- if (putenv ("TZ=GMT0") != 0)
+ if (putenv (TZ_GMT0) != 0)
exit (1);
hour_GMT0 = localtime (&now)->tm_hour;
unset_TZ ();
hour_unset = localtime (&now)->tm_hour;
- if (putenv ("TZ=PST8") != 0)
+ if (putenv (TZ_PST8) != 0)
exit (1);
if (localtime (&now)->tm_hour == hour_GMT0)
exit (1);