Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys/sys The native mutex.h has a userlan...
details: https://anonhg.NetBSD.org/src/rev/9ffef1fa1aee
branches: trunk
changeset: 362320:9ffef1fa1aee
user: christos <christos%NetBSD.org@localhost>
date: Sun Jun 03 14:56:52 2018 +0000
description:
The native mutex.h has a userland visible portion. make it so and fix the
build.
diffstat:
external/cddl/osnet/sys/sys/mutex.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r a40f5b36c058 -r 9ffef1fa1aee external/cddl/osnet/sys/sys/mutex.h
--- a/external/cddl/osnet/sys/sys/mutex.h Sun Jun 03 14:41:05 2018 +0000
+++ b/external/cddl/osnet/sys/sys/mutex.h Sun Jun 03 14:56:52 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mutex.h,v 1.4 2018/05/28 21:05:10 chs Exp $ */
+/* $NetBSD: mutex.h,v 1.5 2018/06/03 14:56:52 christos Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -32,9 +32,9 @@
#ifndef _OPENSOLARIS_SYS_MUTEX_H_
#define _OPENSOLARIS_SYS_MUTEX_H_
-#ifdef _KERNEL
+#include_next <sys/mutex.h>
-#include_next <sys/mutex.h>
+#ifdef _KERNEL
#define MUTEX_HELD(x) (mutex_owned(x))
#define MUTEX_NOT_HELD(x) (!mutex_owned(x) || panicstr != NULL)
Home |
Main Index |
Thread Index |
Old Index