diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c index 6aebc999e1f7..620d796189ce 100644 --- a/usr.sbin/watch/watch.c +++ b/usr.sbin/watch/watch.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -263,6 +264,8 @@ main(ac, av) char ch, *buf, chb[READB_LEN]; fd_set fd_s; + (void) setlocale(LC_TIME, ""); + if (getuid() != 0) fatal(NULL);