diff --git a/src/emacs.c b/src/emacs.c
index d786bc65141..d8b6da5a65a 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -23,6 +23,7 @@ along with GNU Emacs. If not, see . */
#include
#include
+#include
#include
#include
@@ -132,10 +133,6 @@ extern char etext;
# endif
#endif
-#ifdef HAVE_SETLOCALE
-#include
-#endif
-
#if HAVE_WCHAR_H
# include
#endif
diff --git a/src/lread.c b/src/lread.c
index 1bc5b0c993d..047a201eaaa 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -28,6 +28,7 @@ along with GNU Emacs. If not, see . */
#include
#include
#include
+#include
#include
#include
#include "lisp.h"
@@ -55,11 +56,6 @@ along with GNU Emacs. If not, see . */
#endif
#include
-
-#ifdef HAVE_SETLOCALE
-#include
-#endif /* HAVE_SETLOCALE */
-
#include
#if !defined HAVE_ANDROID || defined ANDROID_STUBIFY \
diff --git a/src/sysdep.c b/src/sysdep.c
index 07237885cb9..9e4f3b211bb 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -4551,9 +4551,7 @@ does the same thing as `current-time'. */)
# include
# include
-# if defined HAVE_NEWLOCALE || defined HAVE_SETLOCALE
-# include
-# endif
+# include
# ifndef LC_COLLATE
# define LC_COLLATE 0
# endif