Wrap includes in sys/tslog.h with #ifdef TSLOG.
This is necessary because some non-kernel code #defines _KERNEL and then includes kernel headers; as a result, it was getting conflicting versions of curthread and curproc. Non-kernel code should probably refrain from defining _KERNEL, but for now hiding these indirect inclusions fixes the build. Reported by: Michael Butler, Herbert J. Skuhra
This commit is contained in:
parent
a9bcc66178
commit
0337438d5d
@ -29,8 +29,10 @@
|
||||
#ifndef _TSLOG_H_
|
||||
#define _TSLOG_H_
|
||||
|
||||
#ifdef TSLOG
|
||||
#include <sys/_types.h>
|
||||
#include <sys/pcpu.h>
|
||||
#endif
|
||||
|
||||
#define TS_ENTER 0
|
||||
#define TS_EXIT 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user