From a30a999bb02478243fe4c0b3d012596c5398dfdd Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sun, 2 Nov 2003 07:39:27 +0000 Subject: Hopefully fix the struct tm extension problem once and for all. Also fix a dst-related bug which caused the use of uninitialized data. --- include/time.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/time.h') diff --git a/include/time.h b/include/time.h index e4b746c6d..f957dc210 100644 --- a/include/time.h +++ b/include/time.h @@ -143,12 +143,11 @@ struct tm #ifdef __UCLIBC_HAS_TM_EXTENSIONS__ #ifdef __USE_BSD long int tm_gmtoff; /* Seconds east of UTC. */ - __const char *tm_zone; /* Timezone abbreviation. */ + __const char *tm_zone; /* Timezone abbreviation. */ #else long int __tm_gmtoff; /* Seconds east of UTC. */ - __const char *__tm_zone; /* Timezone abbreviation. */ + __const char *__tm_zone; /* Timezone abbreviation. */ #endif - char __tm_tzname[8]; /* In uClibc, tm_zone points to __tm_tzname. */ #endif /* __UCLIBC_HAS_TM_EXTENSIONS__ */ }; __END_NAMESPACE_STD -- cgit v1.2.3