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.
This commit is contained in:
dholland 2016-01-22 23:59:44 +00:00
parent fd9823afae
commit e7633a3426
1 changed files with 4 additions and 1 deletions

View File

@ -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 * Copyright (c) 1988, 1993
@ -39,6 +39,9 @@
#ifndef _UTMP_H_ #ifndef _UTMP_H_
#define _UTMP_H_ #define _UTMP_H_
#include <sys/cdefs.h>
#include <time.h> /* for time_t */
#define _PATH_UTMP "/var/run/utmp" #define _PATH_UTMP "/var/run/utmp"
#define _PATH_WTMP "/var/log/wtmp" #define _PATH_WTMP "/var/log/wtmp"
#define _PATH_LASTLOG "/var/log/lastlog" #define _PATH_LASTLOG "/var/log/lastlog"