diff --git a/usr.bin/kdump/mkioctls b/usr.bin/kdump/mkioctls index eab44e6821e9..61e173e08798 100644 --- a/usr.bin/kdump/mkioctls +++ b/usr.bin/kdump/mkioctls @@ -1,4 +1,8 @@ -awk ' +# XXX should we use an ANSI cpp? +# XXX does -I$DESTDIR/usr/include actually work? +(echo "#include " + echo "#include " +) | cpp -I$DESTDIR/usr/include -dM | awk ' BEGIN { print "#include " print "#include " @@ -6,6 +10,8 @@ BEGIN { print "#include " print "#include " print "#include " + print "#include " + print "#include " print "#include " print "#define COMPAT_43" print "#include " @@ -31,4 +37,4 @@ END { print "\n\treturn(NULL);" print "}" } -' $DESTDIR/usr/include/sys/ioctl.h $DESTDIR/usr/include/sys/ioctl_compat.h +'