1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Reduce userland namespace polution.

#include <proc.h>, since curproc is needed.
This commit is contained in:
Jason Evans 2000-10-06 08:11:11 +00:00
parent 39df86086f
commit 5704011c0d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66721

View File

@ -33,9 +33,11 @@
#define _MACHINE_MUTEX_H_
#ifndef LOCORE
#include <sys/ktr.h>
#include <sys/queue.h>
#ifdef _KERNEL
#include <sys/ktr.h>
#include <sys/proc.h> /* Needed for curproc. */
#include <machine/atomic.h>
#include <machine/cpufunc.h>
#include <machine/globaldata.h>
@ -76,7 +78,7 @@
#define MTX_FLAGMASK ~(MTX_RECURSE | MTX_CONTESTED)
#define MTX_UNOWNED 0x8 /* Cookie for free mutex */
struct proc; /* XXX */
#endif /* _KERNEL */
/*
* Sleep/spin mutex