diff options
author | jasone <jasone@FreeBSD.org> | 2000-09-23 00:00:50 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2000-09-23 00:00:50 +0000 |
commit | 27bf3e86c9ec30934993eeb4a37bcbbd8154f0d6 (patch) | |
tree | 7efba58b1d00453ffde400a784d7dea8033199c4 /sys/powerpc/include | |
parent | 38c8bc22f0a9cc3143dc1932f04d40c4476d3fee (diff) | |
download | FreeBSD-src-27bf3e86c9ec30934993eeb4a37bcbbd8154f0d6.zip FreeBSD-src-27bf3e86c9ec30934993eeb4a37bcbbd8154f0d6.tar.gz |
#include <sys/proc.h> in order to get curproc. This seems to be the lesser
of two evils; the greater evil is requiring sys/proc.h to be included
before including machine/mutex.h.
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r-- | sys/powerpc/include/mutex.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/powerpc/include/mutex.h b/sys/powerpc/include/mutex.h index 99f9b7c..a8cc2d2 100644 --- a/sys/powerpc/include/mutex.h +++ b/sys/powerpc/include/mutex.h @@ -35,6 +35,7 @@ #ifndef LOCORE #include <sys/ktr.h> +#include <sys/proc.h> /* Needed for curproc. */ #include <sys/queue.h> #include <machine/atomic.h> #include <machine/cpufunc.h> @@ -76,8 +77,6 @@ #define MTX_FLAGMASK ~(MTX_RECURSE | MTX_CONTESTED) #define MTX_UNOWNED 0x8 /* Cookie for free mutex */ -struct proc; /* XXX */ - /* * Sleep/spin mutex */ |