* times.cc (timezone): Put back (void).

* include/cygwin/time.h: Add more cygwin stuff from newlib.
This commit is contained in:
Christopher Faylor 2005-11-18 15:57:16 +00:00
parent d3e81bdac8
commit 4c57fb4960
3 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-11-18 Christopher Faylor <cgf@timesys.com>
* times.cc (timezone): Put back (void).
* include/cygwin/time.h: Add more cygwin stuff from newlib.
2005-11-18 Christopher Faylor <cgf@timesys.com>
* include/cygwin/sys_time.h: Rename from include/cygwin/time.h.

View File

@ -19,6 +19,20 @@ int nanosleep (const struct timespec *, struct timespec *);
int clock_setres (clockid_t, struct timespec *);
int clock_getres (clockid_t, struct timespec *);
#define TIMER_RELTIME 0 /* For compatibility with HP/UX, Solaris, others? */
#ifndef __STRICT_ANSI__
# ifndef daylight
# define daylight _daylight
# endif
# ifndef timezonevar
char *timezone (void);
# elif !defined(timezone)
# define timezone _timezone
# endif
#endif /*__STRICT_ANSI__*/
#ifdef __cplusplus
}
#endif

View File

@ -122,7 +122,7 @@ settimeofday (const struct timeval *tv, const struct timezone *tz)
/* timezone: standards? */
extern "C" char *
timezone ()
timezone (void)
{
char *b = _my_tls.locals.timezone_buf;