Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Stupid old C versions do not know "bool" - include s...



details:   https://anonhg.NetBSD.org/src/rev/b1da4ca9624b
branches:  trunk
changeset: 825608:b1da4ca9624b
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jul 25 04:36:33 2017 +0000

description:
Stupid old C versions do not know "bool" - include stdbool.h to the
rescue.

diffstat:

 sys/sys/extent.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 7543674fc5b4 -r b1da4ca9624b sys/sys/extent.h
--- a/sys/sys/extent.h  Tue Jul 25 03:51:41 2017 +0000
+++ b/sys/sys/extent.h  Tue Jul 25 04:36:33 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extent.h,v 1.21 2017/07/24 19:56:07 skrll Exp $        */
+/*     $NetBSD: extent.h,v 1.22 2017/07/25 04:36:33 martin Exp $       */
 
 /*-
  * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -36,6 +36,10 @@
 #include <sys/mutex.h>
 #include <sys/condvar.h>
 
+#ifndef _KERNEL
+#include <stdbool.h>
+#endif
+
 struct extent_region {
        LIST_ENTRY(extent_region) er_link;      /* link in region list */
        u_long  er_start;               /* start of region */



Home | Main Index | Thread Index | Old Index