diff options
author | ache <ache@FreeBSD.org> | 1995-10-26 23:15:14 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-10-26 23:15:14 +0000 |
commit | a0d781c95c8191578e3fdc3fde1773b41a62a375 (patch) | |
tree | 0aaddba58abcf882e798c29ad908dfc5c64897b6 | |
parent | 91d01e8e8411ebeb07dc06da833bee0c5a75d61c (diff) | |
download | FreeBSD-src-a0d781c95c8191578e3fdc3fde1773b41a62a375.zip FreeBSD-src-a0d781c95c8191578e3fdc3fde1773b41a62a375.tar.gz |
Add setlocale LC_TIME
-rw-r--r-- | usr.sbin/watch/watch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c index 6aebc99..620d7961 100644 --- a/usr.sbin/watch/watch.c +++ b/usr.sbin/watch/watch.c @@ -20,6 +20,7 @@ #include <string.h> #include <termcap.h> #include <sgtty.h> +#include <locale.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> @@ -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); |