Module Name:    src
Committed By:   joerg
Date:           Mon Nov 17 10:55:12 UTC 2014

Modified Files:
        src/sys/sys: clock.h

Log Message:
Make header self-contained.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/sys/clock.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/clock.h
diff -u src/sys/sys/clock.h:1.1 src/sys/sys/clock.h:1.2
--- src/sys/sys/clock.h:1.1	Mon Nov 17 02:27:26 2014
+++ src/sys/sys/clock.h	Mon Nov 17 10:55:12 2014
@@ -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

Reply via email to