Search for _DTRACE_VERSION in sys/sdt.h rather than unistd.h.
MFC after: 1 week
This commit is contained in:
parent
55c2fd519f
commit
35bf9feb41
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313265
@ -25,7 +25,7 @@
|
|||||||
#
|
#
|
||||||
# ident "%Z%%M% %I% %E% SMI"
|
# 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.$$
|
DIR=/var/tmp/dtest.$$
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ mkdir $DIR
|
|||||||
cd $DIR
|
cd $DIR
|
||||||
|
|
||||||
cat > test.c <<EOF
|
cat > test.c <<EOF
|
||||||
#include <unistd.h>
|
#include <sys/sdt.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
@ -46,7 +46,7 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cc -xarch=generic -o test test.c
|
cc -o test test.c
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
print -u2 "failed to compile test.c"
|
print -u2 "failed to compile test.c"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user