Need <time.h> for time() and ctime() prototypes.

This commit is contained in:
kleink 1998-04-02 11:00:10 +00:00
parent 14c640d35e
commit 0a87884eba
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rwho.c,v 1.9 1997/10/19 15:03:06 mrg Exp $ */
/* $NetBSD: rwho.c,v 1.10 1998/04/02 11:00:10 kleink Exp $ */
/*
* Copyright (c) 1983, 1993
@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
#ifndef lint
/*static char sccsid[] = "from: @(#)rwho.c 8.1 (Berkeley) 6/6/93";*/
__RCSID("$NetBSD: rwho.c,v 1.9 1997/10/19 15:03:06 mrg Exp $");
__RCSID("$NetBSD: rwho.c,v 1.10 1998/04/02 11:00:10 kleink Exp $");
#endif /* not lint */
#include <sys/param.h>
@ -55,6 +55,7 @@ __RCSID("$NetBSD: rwho.c,v 1.9 1997/10/19 15:03:06 mrg Exp $");
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
DIR *dirp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: script.c,v 1.5 1997/10/19 22:57:49 lukem Exp $ */
/* $NetBSD: script.c,v 1.6 1998/04/02 11:08:34 kleink Exp $ */
/*
* Copyright (c) 1980, 1992, 1993
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1992, 1993\n\
#if 0
static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93";
#endif
__RCSID("$NetBSD: script.c,v 1.5 1997/10/19 22:57:49 lukem Exp $");
__RCSID("$NetBSD: script.c,v 1.6 1998/04/02 11:08:34 kleink Exp $");
#endif /* not lint */
#include <sys/types.h>
@ -61,6 +61,7 @@ __RCSID("$NetBSD: script.c,v 1.5 1997/10/19 22:57:49 lukem Exp $");
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <time.h>
#include <tzfile.h>
#include <unistd.h>
#include <util.h>