--- misc/create_inode_libarchive.c.orig	2024-05-20 22:52:47
+++ misc/create_inode_libarchive.c	2024-05-30 19:07:37
@@ -29,6 +29,9 @@
 #include <archive_entry.h>
 #include <libgen.h>
 #include <locale.h>
+#ifdef __APPLE__
+#include <xlocale.h>
+#endif
 
 static const char *(*dl_archive_entry_hardlink)(struct archive_entry *);
 static const char *(*dl_archive_entry_pathname)(struct archive_entry *);
