Module Name: src Committed By: jschauma Date: Thu Oct 26 00:59:16 UTC 2023
Modified Files: src/sys/sys: clock.h Log Message: include stdint.h if not in kernel/standalone mode This fixes problems with including sys/clock.h by itself and avoids having to order headers counter to share/style. ifdefs suggested by tnn@ on netbsd-users@. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 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.4 src/sys/sys/clock.h:1.5 --- src/sys/sys/clock.h:1.4 Thu Apr 19 21:19:07 2018 +++ src/sys/sys/clock.h Thu Oct 26 00:59:16 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: clock.h,v 1.4 2018/04/19 21:19:07 christos Exp $ */ +/* $NetBSD: clock.h,v 1.5 2023/10/26 00:59:16 jschauma Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -32,6 +32,10 @@ #ifndef _SYS_CLOCK_H_ #define _SYS_CLOCK_H_ +#if !defined(_KERNEL) && !defined(_STANDALONE) +#include <stdint.h> +#endif + /* Some handy constants. */ #define SECS_PER_MINUTE 60 #define SECS_PER_HOUR 3600