Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Needs sys/cdefs.h for __BEGIN_DECLS. Also add time.h...
details: https://anonhg.NetBSD.org/src/rev/71ca86c12170
branches: trunk
changeset: 813259:71ca86c12170
user: dholland <dholland%NetBSD.org@localhost>
date: Fri Jan 22 23:59:44 2016 +0000
description:
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:
include/utmp.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 7e6aa5a36ebb -r 71ca86c12170 include/utmp.h
--- a/include/utmp.h Fri Jan 22 23:51:23 2016 +0000
+++ b/include/utmp.h Fri Jan 22 23:59:44 2016 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index