Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make Explicitly #include <time.h> for time(3) and st...



details:   https://anonhg.NetBSD.org/src/rev/671c7bad491a
branches:  trunk
changeset: 765190:671c7bad491a
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat May 21 07:30:42 2011 +0000

description:
Explicitly #include <time.h> for time(3) and strftime(3).
Fixes warnings on some non NetBSD hosts.

diffstat:

 usr.bin/make/var.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 75ef7a1decad -r 671c7bad491a usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sat May 21 07:09:09 2011 +0000
+++ b/usr.bin/make/var.c        Sat May 21 07:30:42 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.165 2011/04/11 14:49:09 sjg Exp $    */
+/*     $NetBSD: var.c,v 1.166 2011/05/21 07:30:42 tsutsui Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.165 2011/04/11 14:49:09 sjg Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.166 2011/05/21 07:30:42 tsutsui Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)var.c      8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: var.c,v 1.165 2011/04/11 14:49:09 sjg Exp $");
+__RCSID("$NetBSD: var.c,v 1.166 2011/05/21 07:30:42 tsutsui Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -132,6 +132,7 @@
 #include    <inttypes.h>
 #include    <stdlib.h>
 #include    <limits.h>
+#include    <time.h>
 
 #include    "make.h"
 #include    "buf.h"



Home | Main Index | Thread Index | Old Index