summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2008-04-26 04:34:50 +0000
committerjb <jb@FreeBSD.org>2008-04-26 04:34:50 +0000
commit5bfe3a7665f01409c80123be917456143dad2d8e (patch)
treeb079ae7fc8724c211578c5e99639d0888ca74b92 /cddl
parentf1ca15c2de687bd201b5a4555b4d605cbae52406 (diff)
downloadFreeBSD-src-5bfe3a7665f01409c80123be917456143dad2d8e.zip
FreeBSD-src-5bfe3a7665f01409c80123be917456143dad2d8e.tar.gz
Just leave out a few includes to compile this on FreeBSD.
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/dt_provider.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_provider.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_provider.c
index 86e1204..188ce0e 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_provider.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_provider.c
@@ -27,13 +27,17 @@
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/types.h>
+#if defined(sun)
#include <sys/sysmacros.h>
+#endif
#include <assert.h>
#include <limits.h>
#include <strings.h>
#include <stdlib.h>
+#if defined(sun)
#include <alloca.h>
+#endif
#include <unistd.h>
#include <errno.h>
OpenPOWER on IntegriCloud