Source-Changes-HG archive

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

[src/trunk]: src/sys/sys sys/ksem.h: Hack around fstat(8) abuse of _KERNEL.



details:   https://anonhg.NetBSD.org/src/rev/fc688ed7133d
branches:  trunk
changeset: 377431:fc688ed7133d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 11 11:37:29 2023 +0000

description:
sys/ksem.h: Hack around fstat(8) abuse of _KERNEL.

diffstat:

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

diffs (20 lines):

diff -r 978c582fd46b -r fc688ed7133d sys/sys/ksem.h
--- a/sys/sys/ksem.h    Tue Jul 11 11:13:32 2023 +0000
+++ b/sys/sys/ksem.h    Tue Jul 11 11:37:29 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ksem.h,v 1.16 2023/07/11 09:48:56 riastradh Exp $      */
+/*     $NetBSD: ksem.h,v 1.17 2023/07/11 11:37:29 riastradh Exp $      */
 
 /*
  * Copyright (c) 2002 Alfred Perlstein <alfred%FreeBSD.org@localhost>
@@ -40,7 +40,10 @@ struct timespec;
 #include <sys/condvar.h>
 #include <sys/mutex.h>
 #include <sys/queue.h>
+
+#ifndef _KMEMUSER              /* XXX hack for fstat(8) */
 #include <sys/systm.h>
+#endif
 
 struct lwp;
 struct proc;



Home | Main Index | Thread Index | Old Index