diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-08-29 19:47:43 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-08-29 19:47:43 +0000 |
commit | 9e2a4ef876d6a0749af136d08e334adfec01f906 (patch) | |
tree | 1fb49e158ae00835d03195684ad3a04e1932ee61 /newlib/libc/time | |
parent | 3ab7340b9408983fb49bb7addd24b92a08eb3787 (diff) | |
download | cygnal-9e2a4ef876d6a0749af136d08e334adfec01f906.tar.gz cygnal-9e2a4ef876d6a0749af136d08e334adfec01f906.tar.bz2 cygnal-9e2a4ef876d6a0749af136d08e334adfec01f906.zip |
2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/reent.h: Add include of <sys/_types.h>.
No longer include time.h. Add struct __tm to use for
_localtime_buf in the reentrant structure. Add a
_NULL definition to use in initializing the reentrant struct.
* libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
<sys/_types.h>.
* libc/include/sys/unistd.h: Include <sys/_types.h>.
* libc/time/lcltime.c (localtime): Cast the reentrant struct
_localtime_buf to be struct tm *.
Diffstat (limited to 'newlib/libc/time')
-rw-r--r-- | newlib/libc/time/lcltime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/time/lcltime.c b/newlib/libc/time/lcltime.c index d4c7d7d61..e54a49d37 100644 --- a/newlib/libc/time/lcltime.c +++ b/newlib/libc/time/lcltime.c @@ -51,7 +51,7 @@ struct tm * _DEFUN (localtime, (tim_p), _CONST time_t * tim_p) { - return localtime_r (tim_p, &(_REENT->_new._reent._localtime_buf)); + return localtime_r (tim_p, (struct tm *)&(_REENT->_new._reent._localtime_buf)); } #endif |