- Forward declare struct mtx instead of #include'ing sys/mutex.h

This commit is contained in:
John Baldwin 2000-10-25 00:07:09 +00:00
parent 915cf38b11
commit 7ff9f88355
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67537
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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