diff --git a/tools/psl.c b/tools/psl.c index 04b2b30..0167fb0 100644 --- a/tools/psl.c +++ b/tools/psl.c @@ -32,10 +32,14 @@ # include #endif -#include +#ifdef HAVE_UNISTD_H +# include +#endif + #include #include #include +#include #include @@ -78,7 +82,6 @@ int main(int argc, const char *const *argv) psl_ctx_t *psl = (psl_ctx_t *) psl_latest(NULL); /* set current locale according to the environment variables */ - #include setlocale(LC_ALL, ""); for (arg = argv + 1; arg < argv + argc; arg++) {