summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/config.h
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2001-08-29 19:47:43 +0000
committerJeff Johnston <jjohnstn@redhat.com>2001-08-29 19:47:43 +0000
commit9e2a4ef876d6a0749af136d08e334adfec01f906 (patch)
tree1fb49e158ae00835d03195684ad3a04e1932ee61 /newlib/libc/include/sys/config.h
parent3ab7340b9408983fb49bb7addd24b92a08eb3787 (diff)
downloadcygnal-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/include/sys/config.h')
-rw-r--r--newlib/libc/include/sys/config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index 74860b808..683e5be92 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -128,7 +128,7 @@ typedef unsigned int __uint32_t;
#if defined(__CYGWIN32__) || defined(__CYGWIN__)
#define __FILENAME_MAX__ (260 - 1 /* NUL */)
-#define _READ_WRITE_RETURN_TYPE ssize_t
+#define _READ_WRITE_RETURN_TYPE _ssize_t
#if defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB)
#define __IMPORT
#else
@@ -138,7 +138,7 @@ typedef unsigned int __uint32_t;
#if defined(__rtems__)
#define __FILENAME_MAX__ 255
-#define _READ_WRITE_RETURN_TYPE ssize_t
+#define _READ_WRITE_RETURN_TYPE _ssize_t
#endif
#ifndef __IMPORT