aboutsummaryrefslogtreecommitdiff
path: root/common/fmplayer_file_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/fmplayer_file_unix.c')
-rw-r--r--common/fmplayer_file_unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/fmplayer_file_unix.c b/common/fmplayer_file_unix.c
index 88f1815..13d9450 100644
--- a/common/fmplayer_file_unix.c
+++ b/common/fmplayer_file_unix.c
@@ -7,7 +7,11 @@
#include <string.h>
#include <strings.h>
#include <iconv.h>
+#ifdef __APPLE__
+#include <xlocale.h>
+#else
#include <locale.h>
+#endif
#include <langinfo.h>
static void *fileread(const char *path, size_t maxsize, size_t *filesize, enum fmplayer_file_error *error) {