diff options
author | jhb <jhb@FreeBSD.org> | 2000-10-25 00:07:09 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-10-25 00:07:09 +0000 |
commit | 300e01a7d8ee55d8d5a4070a607b5076b997759d (patch) | |
tree | 522a6f86e81e423c11aa45285fc574363bac2429 /sys/sys | |
parent | 9ae17765f4740fe141af70bd43e76df819daaec7 (diff) | |
download | FreeBSD-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.h | 3 | ||||
-rw-r--r-- | sys/sys/lockmgr.h | 3 |
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 |