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