From 3cc13c287f33c702af4602e6224616b7a464b79d Mon Sep 17 00:00:00 2001 From: rocky Date: Tue, 26 Oct 2004 06:33:49 +0000 Subject: [PATCH] Test for presence of tzset(). --- configure.ac | 4 ++-- lib/iso9660.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 3a0e52f4..726062dc 100644 --- a/configure.ac +++ b/configure.ac @@ -19,7 +19,7 @@ define(RELEASE_NUM, 71) define(CDIO_VERSION_STR, 0.$1cvs) AC_PREREQ(2.52) -AC_REVISION([$Id: configure.ac,v 1.98 2004/10/24 14:32:51 rocky Exp $])dnl +AC_REVISION([$Id: configure.ac,v 1.99 2004/10/26 06:33:49 rocky Exp $])dnl AC_INIT(libcdio, CDIO_VERSION_STR(RELEASE_NUM)) AC_CONFIG_SRCDIR(src/cd-info.c) AM_INIT_AUTOMAKE @@ -312,7 +312,7 @@ AC_DEFINE_UNQUOTED(LICDIO_SOURCE_PATH, "$LIBCDIO_SOURCE_PATH", [Full path to libcdio top_sourcedir.]) AC_SUBST(LIBCDIO_SOURCE_PATH) -AC_CHECK_FUNCS( memset bzero memcpy ) +AC_CHECK_FUNCS( memset bzero memcpy tzset ) AC_CHECK_MEMBER([struct tm.tm_gmtoff], [AC_DEFINE(HAVE_TM_GMTOFF, 1, diff --git a/lib/iso9660.c b/lib/iso9660.c index cbccdf22..463868f2 100644 --- a/lib/iso9660.c +++ b/lib/iso9660.c @@ -1,5 +1,5 @@ /* - $Id: iso9660.c,v 1.21 2004/10/26 01:21:05 rocky Exp $ + $Id: iso9660.c,v 1.22 2004/10/26 06:33:49 rocky Exp $ Copyright (C) 2000 Herbert Valerio Riedel Copyright (C) 2003, 2004 Rocky Bernstein @@ -37,7 +37,7 @@ #include #endif -static const char _rcsid[] = "$Id: iso9660.c,v 1.21 2004/10/26 01:21:05 rocky Exp $"; +static const char _rcsid[] = "$Id: iso9660.c,v 1.22 2004/10/26 06:33:49 rocky Exp $"; /* some parameters... */ #define SYSTEM_ID "CD-RTOS CD-BRIDGE" @@ -98,7 +98,7 @@ iso9660_get_dtime (const iso9660_dtime_t *idr_date, bool b_localtime, p_tm->tm_min = idr_date->dt_minute; p_tm->tm_sec = idr_date->dt_second; -#ifdef HAVE_TM_GMTOFF +#if defined(HAVE_TM_GMTOFF) && defined(HAVE_TZSET) if (b_localtime) { tzset(); p_tm->tm_isdst = daylight;