This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Disable readdir_r and readdir64_r on glibc >= 2.24
[perl5.git] / reentr.h
index c268851..b1f3c80 100644 (file)
--- a/reentr.h
+++ b/reentr.h
 #   define NETDB_R_OBSOLETE
 #endif
 
+#if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 24))
+#   undef HAS_READDIR_R
+#   undef HAS_READDIR64_R
+#endif
+
 /*
  * As of OpenBSD 3.7, reentrant functions are now working, they just are
  * incompatible with everyone else.  To make OpenBSD happy, we have to