Include <time.h> for declarations the Single Unix Specification says

are there but not in <sys/time.h>.
This commit is contained in:
jsm 2001-08-29 18:23:44 +00:00
parent d929aa8aeb
commit 312e8e64e5
3 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: include.h,v 1.6 1997/10/10 02:07:14 lukem Exp $ */ /* $NetBSD: include.h,v 1.7 2001/08/29 18:23:44 jsm Exp $ */
/*- /*-
* Copyright (c) 1990, 1993 * Copyright (c) 1990, 1993
@ -66,6 +66,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <termios.h> #include <termios.h>
#include <time.h>
#include <unistd.h> #include <unistd.h>
#include "def.h" #include "def.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: execute.c,v 1.7 1999/09/08 21:17:51 jsm Exp $ */ /* $NetBSD: execute.c,v 1.8 2001/08/29 18:23:44 jsm Exp $ */
/* /*
* Copyright (c) 1980, 1993 * Copyright (c) 1980, 1993
@ -38,7 +38,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)execute.c 8.1 (Berkeley) 5/31/93"; static char sccsid[] = "@(#)execute.c 8.1 (Berkeley) 5/31/93";
#else #else
__RCSID("$NetBSD: execute.c,v 1.7 1999/09/08 21:17:51 jsm Exp $"); __RCSID("$NetBSD: execute.c,v 1.8 2001/08/29 18:23:44 jsm Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -49,6 +49,7 @@ __RCSID("$NetBSD: execute.c,v 1.7 1999/09/08 21:17:51 jsm Exp $");
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h>
#define SEGSIZE 8192 #define SEGSIZE 8192

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.19 2001/01/04 03:51:24 jwise Exp $ */ /* $NetBSD: main.c,v 1.20 2001/08/29 18:23:44 jsm Exp $ */
/* /*
* Copyright (c) 1983, 1993 * Copyright (c) 1983, 1993
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
#if 0 #if 0
static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 4/28/95"; static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 4/28/95";
#else #else
__RCSID("$NetBSD: main.c,v 1.19 2001/01/04 03:51:24 jwise Exp $"); __RCSID("$NetBSD: main.c,v 1.20 2001/08/29 18:23:44 jsm Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -52,6 +52,7 @@ __RCSID("$NetBSD: main.c,v 1.19 2001/01/04 03:51:24 jwise Exp $");
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h>
#include <unistd.h> #include <unistd.h>
#include "extern.h" #include "extern.h"
#include "restart.h" #include "restart.h"