+# ifdef __GLIBC__
+ if (dlsym (RTLD_NEXT, "sync_file_range") && !dlsym (RTLD_NEXT, "qsort_r"))
+ {
+ /* Way too many Linux users have glibc 2.6 that keeps crashing
+ * inside its non-thread-safe dcgettext(). */
+ fprintf (stderr,
+"***************************************************\n"
+"*** glibc version with broken libintl detected. ***\n"
+"*** Messages localization will be disabled. ***\n"
+"***************************************************\n");
+ setenv ("LC_MESSAGES", "C", 1);
+ }
+# endif