Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Make header self-contained.



details:   https://anonhg.NetBSD.org/src/rev/958177db5e75
branches:  trunk
changeset: 333814:958177db5e75
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Nov 17 10:55:12 2014 +0000

description:
Make header self-contained.

diffstat:

 sys/sys/clock.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r ed23ed895437 -r 958177db5e75 sys/sys/clock.h
--- a/sys/sys/clock.h   Mon Nov 17 10:00:14 2014 +0000
+++ b/sys/sys/clock.h   Mon Nov 17 10:55:12 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.h,v 1.1 2014/11/17 02:27:26 christos Exp $       */
+/*     $NetBSD: clock.h,v 1.2 2014/11/17 10:55:12 joerg Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -32,6 +32,12 @@
 #ifndef _SYS_CLOCK_H_
 #define _SYS_CLOCK_H_
 
+#if !defined(_KERNEL) && !defined(_STANDALONE)
+#include <errno.h>
+#else
+#include <sys/errno.h>
+#endif
+
 /* Some handy constants. */
 #define SECS_PER_MINUTE                60
 #define SECS_PER_HOUR          3600



Home | Main Index | Thread Index | Old Index