diff options
author | alfred <alfred@FreeBSD.org> | 2000-11-26 21:14:17 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2000-11-26 21:14:17 +0000 |
commit | 011c33c2f96346470ca299b4360b807c37eccf99 (patch) | |
tree | c8ca19dcc59e4524e1adaf5abe8364de631365c9 /sys/kern/kern_mutex.c | |
parent | 7101ba5caa38060b2d927dc5bd81c320b7055e6b (diff) | |
download | FreeBSD-src-011c33c2f96346470ca299b4360b807c37eccf99.zip FreeBSD-src-011c33c2f96346470ca299b4360b807c37eccf99.tar.gz |
Move the #define of _KERN_MUTEX_C_ so that it's before any system headers
are included. System headers can include sys/mutex.h and then certain
macros do not get defined.
Reviewed by: jake
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r-- | sys/kern/kern_mutex.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index bc335c5..e66e6f8 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -53,6 +53,12 @@ #include "opt_ddb.h" #include "opt_witness.h" +/* + * Cause non-inlined mtx_*() to be compiled. + * Must be defined early because other system headers may include mutex.h. + */ +#define _KERN_MUTEX_C_ + #include <sys/param.h> #include <sys/bus.h> #include <sys/kernel.h> @@ -73,7 +79,6 @@ #include <vm/vm.h> #include <vm/vm_extern.h> -#define _KERN_MUTEX_C_ /* Cause non-inlined mtx_*() to be compiled. */ #include <sys/mutex.h> /* |