diff options
author | 2003-06-09 20:21:36 +0000 | |
---|---|---|
committer | 2003-06-09 20:21:36 +0000 | |
commit | 8289f087adac2f5ffe483c9edcc722675daa28c1 (patch) | |
tree | ac0c3bffd2134f775f3d2405758abcbbbcab7ea5 | |
parent | Also exit waitpid() loop when pid == 0. Fixes a problem where the sudo (diff) | |
download | wireguard-openbsd-8289f087adac2f5ffe483c9edcc722675daa28c1.tar.xz wireguard-openbsd-8289f087adac2f5ffe483c9edcc722675daa28c1.zip |
Need to include time.h to get ctime() proto.
-rw-r--r-- | usr.bin/newsyslog/newsyslog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c index e1d418b0c35..a0e63ddc3e9 100644 --- a/usr.bin/newsyslog/newsyslog.c +++ b/usr.bin/newsyslog/newsyslog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyslog.c,v 1.67 2003/06/03 21:09:02 deraadt Exp $ */ +/* $OpenBSD: newsyslog.c,v 1.68 2003/06/09 20:21:36 millert Exp $ */ /* * Copyright (c) 1999, 2002, 2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -68,7 +68,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: newsyslog.c,v 1.67 2003/06/03 21:09:02 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: newsyslog.c,v 1.68 2003/06/09 20:21:36 millert Exp $"; #endif /* not lint */ #ifndef CONF @@ -106,6 +106,7 @@ static const char rcsid[] = "$OpenBSD: newsyslog.c,v 1.67 2003/06/03 21:09:02 de #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <time.h> #include <unistd.h> #define CE_ROTATED 0x01 /* Log file has been rotated */ |