#include <sys/time.h>
#include <ctype.h>
+#ifdef HAVE_LOCALE_H
+# include <locale.h>
+#endif /* HAVE_LOCALE_H */
+
#ifdef USE_GL /* whole file */
#ifdef HAVE_UNAME
text_configuration *tp;
int i;
+# ifdef HAVE_SETLOCALE
+ setlocale (LC_TIME, ""); /* for strftime() calls */
+# endif
+
if (!tps) {
tps = (text_configuration *)
calloc (MI_NUM_SCREENS(mi), sizeof (text_configuration));