From 9e2a4ef876d6a0749af136d08e334adfec01f906 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 29 Aug 2001 19:47:43 +0000 Subject: 2001-08-29 Jeff Johnston * libc/include/sys/reent.h: Add include of . 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 . * libc/include/sys/unistd.h: Include . * libc/time/lcltime.c (localtime): Cast the reentrant struct _localtime_buf to be struct tm *. --- newlib/libc/time/lcltime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/time/lcltime.c') 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 -- cgit v1.2.3