--- Release/CMakeLists.txt.orig	2023-12-05 08:23:31
+++ Release/CMakeLists.txt	2025-09-13 13:54:50
@@ -83,6 +83,9 @@
 
 if(NOT WIN32)
   CHECK_INCLUDE_FILES(xlocale.h HAVE_XLOCALE_H)
+  if(HAVE_XLOCALE_H)
+    add_definitions(-DHAVE_XLOCALE_H)
+  endif()
 endif()
 
 if(APPLE) # Note: also iOS
