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 161e3da74387da1c87aeded426cfca155ea94df1..dd4ebf622b79ded70d0db1ce7f5c484fe52384c3 100644 (file)
--- 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.
index 52b47273e50469b1b45f4e03fc335ff3478c692d..8e9ac0ad9ae14cf74402ff52a23f1e252945a16b 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