summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-10-25 00:07:09 +0000
committerjhb <jhb@FreeBSD.org>2000-10-25 00:07:09 +0000
commit300e01a7d8ee55d8d5a4070a607b5076b997759d (patch)
tree522a6f86e81e423c11aa45285fc574363bac2429 /sys/sys
parent9ae17765f4740fe141af70bd43e76df819daaec7 (diff)
downloadFreeBSD-src-300e01a7d8ee55d8d5a4070a607b5076b997759d.zip
FreeBSD-src-300e01a7d8ee55d8d5a4070a607b5076b997759d.tar.gz
- Forward declare struct mtx instead of #include'ing sys/mutex.h
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/lock.h3
-rw-r--r--sys/sys/lockmgr.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 47afdb2..a797a72 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -41,9 +41,10 @@
#ifndef _LOCK_H_
#define _LOCK_H_
-#include <sys/mutex.h>
#include <machine/lock.h>
+struct mtx;
+
/*
* The general lock structure. Provides for multiple shared locks,
* upgrading from shared to exclusive, and sleeping until the lock
diff --git a/sys/sys/lockmgr.h b/sys/sys/lockmgr.h
index 47afdb2..a797a72 100644
--- a/sys/sys/lockmgr.h
+++ b/sys/sys/lockmgr.h
@@ -41,9 +41,10 @@
#ifndef _LOCK_H_
#define _LOCK_H_
-#include <sys/mutex.h>
#include <machine/lock.h>
+struct mtx;
+
/*
* The general lock structure. Provides for multiple shared locks,
* upgrading from shared to exclusive, and sleeping until the lock
OpenPOWER on IntegriCloud