]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - libio/oldfileops.c
[BZ 1190] Make EOF sticky in stdio.
[thirdparty/glibc.git] / libio / oldfileops.c
index 7997ddf90b9dd6f661c8afb6f6ebc6ed829c2b69..5e60c8c168ae6111f95f1c555eadfcc3c0060257 100644 (file)
@@ -294,11 +294,10 @@ attribute_compat_text_section
 _IO_old_file_underflow (FILE *fp)
 {
   ssize_t count;
-#if 0
-  /* SysV does not make this test; take it out for compatibility */
+
+  /* C99 requires EOF to be "sticky".  */
   if (fp->_flags & _IO_EOF_SEEN)
-    return (EOF);
-#endif
+    return EOF;
 
   if (fp->_flags & _IO_NO_READS)
     {