From 6811cfb0b9a69fa980ce6c17fc0ba383c12be485 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 18 Aug 2014 16:43:42 +0000 Subject: [PATCH] 2014-08-18 Jeff Johnston * libc/include/sys/config.h[__m68k__]: Set _READ_WRITE_RETURN_TYPE to _ssize_t to match underlying code in libgloss. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/config.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 6801f7945..b5d8c89a0 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2014-08-18 Jeff Johnston + + * libc/include/sys/config.h[__m68k__]: Set _READ_WRITE_RETURN_TYPE + to _ssize_t to match underlying code in libgloss. + 2014-08-18 Joel Sherrill * libc/include/string.h: Improve language and OS standard guards. diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index 0de3ffb88..0d27d6c11 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -75,6 +75,10 @@ #define _POINTER_INT short #endif +#if defined(__m68k__) || defined(__mc68000__) +#define _READ_WRITE_RETURN_TYPE _ssize_t +#endif + #ifdef ___AM29K__ #define _FLOAT_RET double #endif