aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/toys.h b/toys.h
index 55256efe..69876f23 100644
--- a/toys.h
+++ b/toys.h
@@ -15,7 +15,6 @@
#include <inttypes.h>
#include <limits.h>
#include <libgen.h>
-#include <locale.h>
#include <math.h>
#include <pty.h>
#include <pwd.h>
@@ -47,8 +46,12 @@
#include <unistd.h>
#include <utime.h>
#include <utmpx.h>
+
+#ifdef CFG_TOYBOX_I18N
+#include <locale.h>
#include <wchar.h>
#include <wctype.h>
+#endif
#include "lib/lib.h"
#include "toys/e2fs.h"