aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/cmd/dtrace
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2017-02-05 02:45:35 +0000
committerMark Johnston <markj@FreeBSD.org>2017-02-05 02:45:35 +0000
commit35bf9feb41b731dec8c1e01634926320a9605865 (patch)
treefe0c7f159260c1dac0c5a3250fee18ad50a39da0 /cddl/contrib/opensolaris/cmd/dtrace
parent55c2fd519fc82aab9f4bf051bdff16e9f08dab77 (diff)
downloadsrc-35bf9feb41b731dec8c1e01634926320a9605865.tar.gz
src-35bf9feb41b731dec8c1e01634926320a9605865.zip
Search for _DTRACE_VERSION in sys/sdt.h rather than unistd.h.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=313265
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/dtrace')
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst.include.ksh6
1 files changed, 3 insertions, 3 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst.include.ksh b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst.include.ksh
index 6f809fdc7c89..00da05bb9a07 100644
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst.include.ksh
+++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst.include.ksh
@@ -25,7 +25,7 @@
#
# ident "%Z%%M% %I% %E% SMI"
-# Make sure <unistd.h> defines _DTRACE_VERSION
+# Make sure <sys/sdt.h> defines _DTRACE_VERSION
DIR=/var/tmp/dtest.$$
@@ -33,7 +33,7 @@ mkdir $DIR
cd $DIR
cat > test.c <<EOF
-#include <unistd.h>
+#include <sys/sdt.h>
int
main(int argc, char **argv)
@@ -46,7 +46,7 @@ main(int argc, char **argv)
}
EOF
-cc -xarch=generic -o test test.c
+cc -o test test.c
if [ $? -ne 0 ]; then
print -u2 "failed to compile test.c"
exit 1