mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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"
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue