Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev If HAVE_NBTOOL_CONFIG_H is set, then include "nbtool...
details: https://anonhg.NetBSD.org/src/rev/5439e8a1a12a
branches: trunk
changeset: 331941:5439e8a1a12a
user: apb <apb%NetBSD.org@localhost>
date: Mon Sep 01 12:25:52 2014 +0000
description:
If HAVE_NBTOOL_CONFIG_H is set, then include "nbtool_config.h",
because this file is compiled as part of tools/makefs.
diffstat:
sys/dev/clock_subr.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r cc064d4dd4e4 -r 5439e8a1a12a sys/dev/clock_subr.c
--- a/sys/dev/clock_subr.c Mon Sep 01 11:21:29 2014 +0000
+++ b/sys/dev/clock_subr.c Mon Sep 01 12:25:52 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock_subr.c,v 1.19 2014/09/01 11:21:29 apb Exp $ */
+/* $NetBSD: clock_subr.c,v 1.20 2014/09/01 12:25:52 apb Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -44,16 +44,20 @@
* Derived from arch/hp300/hp300/clock.c
*/
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif /* HAVE_NBTOOL_CONFIG_H */
+
#ifdef _KERNEL
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock_subr.c,v 1.19 2014/09/01 11:21:29 apb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock_subr.c,v 1.20 2014/09/01 12:25:52 apb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
-#else
+#else /* ! _KERNEL */
#include <string.h>
#include <time.h>
-#endif
+#endif /* ! _KERNEL */
#include <dev/clock_subr.h>
Home |
Main Index |
Thread Index |
Old Index