[libcxx][AIX] Explicitly include localedef.h in locale.cpp

This header was transitively included to provide the definition of
__lc_ctype_ptr that we use on AIX, but that is fragile as it depends on
the settings of compatibility macros, so we explicitly include it here
to avoid that scenario.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D111239

GitOrigin-RevId: 1112b7bad851c78af2159d39c7bff670a9c77da1
diff --git a/src/locale.cpp b/src/locale.cpp
index d069b42..44c24d0 100644
--- a/src/locale.cpp
+++ b/src/locale.cpp
@@ -28,6 +28,10 @@
 #   include "cwctype"
 #endif
 
+#if defined(_AIX)
+#   include <sys/localedef.h> // for __lc_ctype_ptr
+#endif
+
 #if defined(_LIBCPP_MSVCRT)
 #   define _CTYPE_DISABLE_MACROS
 #endif