Don't hardcode the value of _IOERR.
authorBruno Haible <bruno@clisp.org>
Mon, 23 Apr 2007 07:58:06 +0000 (07:58 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 23 Apr 2007 07:58:06 +0000 (07:58 +0000)
ChangeLog
lib/fseterr.c

index 161e3da..dd4ebf6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
        Needed on HP-UX 11.
 
index 52b4727..8e9ac0a 100644 (file)
@@ -34,7 +34,7 @@ fseterr (FILE *fp)
   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