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
This commit is contained in:
parent
a52585d77e
commit
0931dcefb3
@ -53,6 +53,12 @@
|
|||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_witness.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/param.h>
|
||||||
#include <sys/bus.h>
|
#include <sys/bus.h>
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
@ -73,7 +79,6 @@
|
|||||||
#include <vm/vm.h>
|
#include <vm/vm.h>
|
||||||
#include <vm/vm_extern.h>
|
#include <vm/vm_extern.h>
|
||||||
|
|
||||||
#define _KERN_MUTEX_C_ /* Cause non-inlined mtx_*() to be compiled. */
|
|
||||||
#include <sys/mutex.h>
|
#include <sys/mutex.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -53,6 +53,12 @@
|
|||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_witness.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/param.h>
|
||||||
#include <sys/bus.h>
|
#include <sys/bus.h>
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
@ -73,7 +79,6 @@
|
|||||||
#include <vm/vm.h>
|
#include <vm/vm.h>
|
||||||
#include <vm/vm_extern.h>
|
#include <vm/vm_extern.h>
|
||||||
|
|
||||||
#define _KERN_MUTEX_C_ /* Cause non-inlined mtx_*() to be compiled. */
|
|
||||||
#include <sys/mutex.h>
|
#include <sys/mutex.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -53,6 +53,12 @@
|
|||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_witness.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/param.h>
|
||||||
#include <sys/bus.h>
|
#include <sys/bus.h>
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
@ -73,7 +79,6 @@
|
|||||||
#include <vm/vm.h>
|
#include <vm/vm.h>
|
||||||
#include <vm/vm_extern.h>
|
#include <vm/vm_extern.h>
|
||||||
|
|
||||||
#define _KERN_MUTEX_C_ /* Cause non-inlined mtx_*() to be compiled. */
|
|
||||||
#include <sys/mutex.h>
|
#include <sys/mutex.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user