diff options
author | jasone <jasone@FreeBSD.org> | 2000-10-06 08:11:11 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2000-10-06 08:11:11 +0000 |
commit | 6d81977609501c60b9602b2caf0d85eaa0d6bda3 (patch) | |
tree | b44ed6954be49685605a20480e6aa062cb1a86e2 /sys/ia64 | |
parent | b82f0ccba2afc2d5e0ba00f058b6a26087733c42 (diff) | |
download | FreeBSD-src-6d81977609501c60b9602b2caf0d85eaa0d6bda3.zip FreeBSD-src-6d81977609501c60b9602b2caf0d85eaa0d6bda3.tar.gz |
Reduce userland namespace polution.
#include <proc.h>, since curproc is needed.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/include/mutex.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/ia64/include/mutex.h b/sys/ia64/include/mutex.h index ea81a8b..cd8df64 100644 --- a/sys/ia64/include/mutex.h +++ b/sys/ia64/include/mutex.h @@ -33,9 +33,11 @@ #define _MACHINE_MUTEX_H_ #ifndef LOCORE +#include <sys/queue.h> +#ifdef _KERNEL #include <sys/ktr.h> -#include <sys/queue.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 |