aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/mk/bsd.dep.mk2
-rw-r--r--sys/sys/sdt.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index 14619eb93c7a..509c17f5823e 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -125,7 +125,7 @@ ${_YC:R}.o: ${_YC}
.if ${SRCS:M*.d}
LDFLAGS+= -lelf
LDADD+= ${LIBELF}
-CFLAGS+= -D_DTRACE_VERSION=1 -I${.OBJDIR}
+CFLAGS+= -I${.OBJDIR}
.endif
.for _DSRC in ${SRCS:M*.d:N*/*}
.for _D in ${_DSRC:R}
diff --git a/sys/sys/sdt.h b/sys/sys/sdt.h
index eda1a12b1e97..ca820f68bce1 100644
--- a/sys/sys/sdt.h
+++ b/sys/sys/sdt.h
@@ -33,6 +33,8 @@
#ifndef _KERNEL
+#define _DTRACE_VERSION 1
+
#define DTRACE_PROBE(prov, name) { \
extern void __dtrace_##prov##___##name(void); \
__dtrace_##prov##___##name(); \