diff --git a/usr.bin/ncftp/main.c b/usr.bin/ncftp/main.c index 80b5015816b6..55f0eb0f1450 100644 --- a/usr.bin/ncftp/main.c +++ b/usr.bin/ncftp/main.c @@ -16,6 +16,9 @@ #include #include #include +#ifdef __FreeBSD__ +#include +#endif #ifdef SYSLOG # include @@ -142,6 +145,10 @@ void main(int argc, char **argv) string tmp, oline; struct servent *sptr; +#ifdef __FreeBSD__ + (void) setlocale(LC_TIME, ""); +#endif + if ((cp = rindex(argv[0], '/'))) cp++; else cp = argv[0]; (void) Strncpy(progname, cp);