Mercurial > hg > octave-lyh > gnulib-hg
changeset 11732:867a6671ca00
Make fseeko.c compile on QNX.
author | Matt Kraai <mkraai@beckman.com> |
---|---|
date | Thu, 23 Jul 2009 07:25:46 +0200 |
parents | 2ddd55967fe9 |
children | 65c13bc94058 |
files | ChangeLog lib/fseeko.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change) + + Make fseeko.c compile on QNX. + * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE. + 2009-07-22 Peter Simons <simons@cryp.to> C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
--- a/lib/fseeko.c +++ b/lib/fseeko.c @@ -79,7 +79,7 @@ && ((fp->__modeflags & (__FLAG_READONLY | __FLAG_READING)) == 0 || fp->__bufpos == fp->__bufread)) #elif defined __QNX__ /* QNX */ - if ((fp->_Mode & _MWRITE ? fp->_Next == fp->_Buf : fp->_Next == fp->_Rend) + if ((fp->_Mode & 0x2000 /* _MWRITE */ ? fp->_Next == fp->_Buf : fp->_Next == fp->_Rend) && fp->_Rback == fp->_Back + sizeof (fp->_Back) && fp->_Rsave == NULL) #elif defined __MINT__ /* Atari FreeMiNT */