Mercurial > hg > xemacs-beta
diff src/sysdep.h @ 274:ca9a9ec9c1c1 r21-0b35
Import from CVS: tag r21-0b35
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:29:42 +0200 |
parents | 727739f917cb |
children | 7df0dd720c89 |
line wrap: on
line diff
--- a/src/sysdep.h Mon Aug 13 10:28:54 2007 +0200 +++ b/src/sysdep.h Mon Aug 13 10:29:42 2007 +0200 @@ -78,9 +78,9 @@ extern JMP_BUF break_system_call_jump; extern volatile int can_break_system_calls; -int sys_write_1 (int fildes, CONST void *buf, unsigned int nbyte, +int sys_write_1 (int fildes, CONST void *buf, size_t nbyte, int allow_quit); -int sys_read_1 (int fildes, void *buf, unsigned int nbyte, +int sys_read_1 (int fildes, void *buf, size_t nbyte, int allow_quit); /* Call these functions if you want to change some terminal parameter -- @@ -158,8 +158,16 @@ # ifdef strerror # undef strerror # endif +#if defined (__GNUC__) && defined (__GNUC_MINOR__) +#if ((__GNUC__ == 2) && (__GNUC_MINOR__ > 7)) || ((__GNUC__ > 2)) +char *strerror (int); +#else CONST char *strerror (int); #endif +#else +CONST char *strerror (int); +#endif +#endif #ifdef WINDOWSNT void mswindows_set_errno (unsigned long win32_error);