diff options
author | jb <jb@FreeBSD.org> | 2008-04-26 05:07:54 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2008-04-26 05:07:54 +0000 |
commit | 7bc32bb24c69d0256d0170c86445386fd5ae152d (patch) | |
tree | 7cb2acc1cfa5fb9262a48a99cc6657d5ef4d7c42 /cddl | |
parent | 66387460cd788e85902385c629846180a707fd71 (diff) | |
download | FreeBSD-src-7bc32bb24c69d0256d0170c86445386fd5ae152d.zip FreeBSD-src-7bc32bb24c69d0256d0170c86445386fd5ae152d.tar.gz |
Make this file compile cleanly.
Diffstat (limited to 'cddl')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_handle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_handle.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_handle.c index 9d27aee..ea039e9 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_handle.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_handle.c @@ -31,7 +31,9 @@ #include <errno.h> #include <unistd.h> #include <assert.h> +#if defined(sun) #include <alloca.h> +#endif #include <dt_impl.h> #include <dt_program.h> @@ -247,7 +249,7 @@ dt_handle_liberr(dtrace_hdl_t *dtp, const dtrace_probedata_t *data, err.dteda_action = -1; err.dteda_offset = -1; err.dteda_fault = DTRACEFLT_LIBRARY; - err.dteda_addr = NULL; + err.dteda_addr = 0; len = strlen(faultstr) + strlen(errpd->dtpd_provider) + strlen(errpd->dtpd_mod) + |