Module Name:    src
Committed By:   jschauma
Date:           Fri Oct 27 14:34:58 UTC 2023

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

Log Message:
revert previous and go back to ifdef and 'include <stdint.h>'

As noted on current-users, using sys/stdint.h breaks building tools
(albeit perhaps surprisingly so).


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 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.6 src/sys/sys/clock.h:1.7
--- src/sys/sys/clock.h:1.6	Thu Oct 26 14:04:45 2023
+++ src/sys/sys/clock.h	Fri Oct 27 14:34:58 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: clock.h,v 1.6 2023/10/26 14:04:45 jschauma Exp $	*/
+/*	$NetBSD: clock.h,v 1.7 2023/10/27 14:34:58 jschauma Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -32,7 +32,9 @@
 #ifndef _SYS_CLOCK_H_
 #define _SYS_CLOCK_H_
 
-#include <sys/stdint.h>
+#if !defined(_KERNEL) && !defined(_STANDALONE) 
+#include <stdint.h>
+#endif
 
 /* Some handy constants. */
 #define SECS_PER_MINUTE		60

Reply via email to