*: test for daylight and timezone

configure.ac: test for stdbool.h
This commit is contained in:
rocky
2004-10-30 00:38:43 +00:00
parent 749d506d08
commit 9d94b71a53
2 changed files with 28 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: iso9660.c,v 1.22 2004/10/26 06:33:49 rocky Exp $
$Id: iso9660.c,v 1.23 2004/10/30 00:38:43 rocky Exp $
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
@@ -37,7 +37,7 @@
#include <stdio.h>
#endif
static const char _rcsid[] = "$Id: iso9660.c,v 1.22 2004/10/26 06:33:49 rocky Exp $";
static const char _rcsid[] = "$Id: iso9660.c,v 1.23 2004/10/30 00:38:43 rocky Exp $";
/* some parameters... */
#define SYSTEM_ID "CD-RTOS CD-BRIDGE"
@@ -101,9 +101,11 @@ iso9660_get_dtime (const iso9660_dtime_t *idr_date, bool b_localtime,
#if defined(HAVE_TM_GMTOFF) && defined(HAVE_TZSET)
if (b_localtime) {
tzset();
p_tm->tm_zone = (char *) tzname;
#if defined(HAVE_DAYLIGHT)
p_tm->tm_isdst = daylight;
p_tm->tm_gmtoff = timezone;
p_tm->tm_zone = (char *) tzname;
#endif
}
#endif