Include <sys/sdt.h> on a generated header.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2400afc155
commit
8f7264f0e3
@ -557,6 +557,10 @@ dt_header_provider(dtrace_hdl_t *dtp, dt_provider_t *pvp, FILE *out)
|
||||
info.dthi_pfname = alloca(strlen(pvp->pv_desc.dtvd_name) + 1 + i);
|
||||
dt_header_fmt_func(info.dthi_pfname, pvp->pv_desc.dtvd_name);
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
if (fprintf(out, "#include <sys/sdt.h>\n\n") < 0)
|
||||
return (dt_set_errno(dtp, errno));
|
||||
#endif
|
||||
if (fprintf(out, "#if _DTRACE_VERSION\n\n") < 0)
|
||||
return (dt_set_errno(dtp, errno));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user