X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/b51d5b5f06948960f0bfd4ad974e625ca2350936..709a58224ea43109dc10bfd6a67de1e432174197:/kdump.tproj/mkioctls diff --git a/kdump.tproj/mkioctls b/kdump.tproj/mkioctls index 53c8afd..f98139a 100644 --- a/kdump.tproj/mkioctls +++ b/kdump.tproj/mkioctls @@ -35,7 +35,7 @@ ioctl_includes=` ` echo "/* XXX obnoxious prerequisites. */" -echo "#define COMPAT_43 1" +echo "#define COMPAT_43_TTY 1" echo "#include " echo "#include " echo "#include " @@ -76,10 +76,16 @@ BEGIN { break; ++i; # + if ($i == "SIOCADDRT" || $i == "SIOCDELRT") { + printf("#if 0\n"); + } if (use_switch) printf("\tcase %s:\n\t\treturn(\"%s\");\n", $i, $i); else printf("\tif (val == %s)\n\t\treturn(\"%s\");\n", $i, $i); + if ($i == "SIOCADDRT" || $i == "SIOCDELRT") { + printf("#endif\n"); + } } END {