diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2003-06-17 19:19:39 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2003-06-17 19:19:39 +0000 |
commit | 20d8808116d749b626c080b2891c968f163966e6 (patch) | |
tree | 844fad9fc34f16b7496356f11855ab5069d8e10c /include/time.h | |
parent | a8041047f4c21c83341bfd1f7cc5c111dd76e0db (diff) |
Optionally support the struct tm extension fields.
Add a few misc functions mentioned in time.h.
Revert davidm's change regarding using a define for the "/etc/TZ" path,
as this is eventually meant to be a configurable extension and not
unconditionally supported.
Diffstat (limited to 'include/time.h')
-rw-r--r-- | include/time.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/time.h b/include/time.h index bd86b40ee..5611defbb 100644 --- a/include/time.h +++ b/include/time.h @@ -127,15 +127,15 @@ struct tm int tm_yday; /* Days in year.[0-365] */ int tm_isdst; /* DST. [-1/0/1]*/ -#if 0 +#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[8]; /* Timezone abbreviation. */ # else long int __tm_gmtoff; /* Seconds east of UTC. */ - __const char *__tm_zone; /* Timezone abbreviation. */ + __const char __tm_zone[8];/* Timezone abbreviation. */ # endif -#endif +#endif /* __UCLIBC_HAS_TM_EXTENSIONS__ */ }; |