From c95c18768b45d9fd4e38f4389ff4795a9521a180 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= <jerome.duval@gmail.com>
Date: Wed, 2 Nov 2022 13:47:24 +0100
Subject: [PATCH] POSIX: wchar.h and wctype.h don't need the locale.h but
 locale_t.h
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* missed in hrev56270.
* mentioned on IRC: <dwa> please ask them if wchar.h isn't meant to include locale_t.h instead of locale.h

Change-Id: Ia9b7553480430c2fefb4a3659ad525322152582b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5797
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
---
 headers/posix/wchar.h  | 2 +-
 headers/posix/wctype.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/headers/posix/wchar.h b/headers/posix/wchar.h
index 727fda02ca..45c3b6ba89 100644
--- a/headers/posix/wchar.h
+++ b/headers/posix/wchar.h
@@ -7,7 +7,7 @@
 
 
 #include <limits.h>
-#include <locale.h>
+#include <locale_t.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <time.h>
diff --git a/headers/posix/wctype.h b/headers/posix/wctype.h
index 087cd9109e..96a9d48112 100644
--- a/headers/posix/wctype.h
+++ b/headers/posix/wctype.h
@@ -6,7 +6,7 @@
 #define _WCTYPE_H_
 
 
-#include <locale.h>
+#include <locale_t.h>
 #include <wchar.h>
 
 typedef int wctrans_t;