bin/stty: sync with NetBSD-8

need <time.h> for time(3)

closes #273

Change-Id: I23c6747e2490192a2ff7b98ce9f55b2e9d45be00
This commit is contained in:
Sevan Janiyan 2018-11-04 14:44:04 +00:00 committed by Lionel Sambuc
parent df78030728
commit 609f541dd3

View File

@ -1,4 +1,4 @@
/* $NetBSD: key.c,v 1.21 2013/09/12 19:47:23 christos Exp $ */
/* $NetBSD: key.c,v 1.22 2017/01/10 20:44:05 christos Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)key.c 8.4 (Berkeley) 2/20/95";
#else
__RCSID("$NetBSD: key.c,v 1.21 2013/09/12 19:47:23 christos Exp $");
__RCSID("$NetBSD: key.c,v 1.22 2017/01/10 20:44:05 christos Exp $");
#endif
#endif /* not lint */
@ -43,6 +43,7 @@ __RCSID("$NetBSD: key.c,v 1.21 2013/09/12 19:47:23 christos Exp $");
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <time.h>
#include <paths.h>
#include <stdlib.h>
#include <stdio.h>