Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
[gnulib.git] / lib / freading.h
index a4f682d..bf67b07 100644 (file)
@@ -32,7 +32,8 @@
 
    STREAM must not be wide-character oriented.  */
 
-#if HAVE___FREADING && !defined __GLIBC__ /* Solaris >= 7, not glibc >= 2.2  */
+#if HAVE___FREADING && (!defined __GLIBC__ || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 7))
+/* Solaris >= 7, not glibc >= 2.2, but glibc >= 2.7  */
 
 # include <stdio_ext.h>
 # define freading(stream) (__freading (stream) != 0)