Mercurial > hg > octave-nkf > gnulib-hg
changeset 8702:880113a4765f
Don't hardcode the value of _IOERR.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 23 Apr 2007 07:58:06 +0000 |
parents | da3f12e86b1a |
children | 0f394f9a6ffe |
files | ChangeLog lib/fseterr.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-04-23 Bruno Haible <bruno@clisp.org> + + * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR. + 2007-04-23 Bruno Haible <bruno@clisp.org> * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
--- a/lib/fseterr.c +++ b/lib/fseterr.c @@ -34,7 +34,7 @@ fp->_flags |= __SERR; #elif defined _IOERR /* AIX, HP-UX, IRIX, OSF/1, Solaris, mingw */ # if defined __sun && defined __sparc && defined _LP64 /* Solaris/SPARC 64-bit */ - ((unsigned int *) fp) [9] |= 0x20; + ((unsigned int *) fp) [9] |= _IOERR; # else fp->_flag |= _IOERR; # endif