diff options
| author | dholland <dholland@NetBSD.org> | 2016-01-22 23:59:44 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2016-01-22 23:59:44 +0000 |
| commit | 35395742733b3eac284139c4ca87d420af8e91e0 (patch) | |
| tree | 5404367cc7071d008ad3b1e645fe2e4bdf20fd12 /include | |
| parent | f0bd12ca8c565875cecf0394d3ddd25b396941bd (diff) | |
Needs sys/cdefs.h for __BEGIN_DECLS. Also add time.h to get time_t,
rather than doing the machine/ansi.h #ifdef dance, as it doesn't matter
much what symbols utmp.h exposes. This could be tightened later when we
manage to do enough include cleanup to make such dances less expensive
to maintain.
Diffstat (limited to 'include')
| -rw-r--r-- | include/utmp.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/utmp.h b/include/utmp.h index a489cb34f24..09d48c20e0d 100644 --- a/include/utmp.h +++ b/include/utmp.h @@ -1,4 +1,4 @@ -/* $NetBSD: utmp.h,v 1.12 2009/01/11 03:04:12 christos Exp $ */ +/* $NetBSD: utmp.h,v 1.13 2016/01/22 23:59:44 dholland Exp $ */ /* * Copyright (c) 1988, 1993 @@ -39,6 +39,9 @@ #ifndef _UTMP_H_ #define _UTMP_H_ +#include <sys/cdefs.h> +#include <time.h> /* for time_t */ + #define _PATH_UTMP "/var/run/utmp" #define _PATH_WTMP "/var/log/wtmp" #define _PATH_LASTLOG "/var/log/lastlog" |
