summaryrefslogtreecommitdiff
path: root/usr.bin/kdump/mkioctls
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/kdump/mkioctls')
-rw-r--r--usr.bin/kdump/mkioctls5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/kdump/mkioctls b/usr.bin/kdump/mkioctls
index 0a53184b105..c0e833e640b 100644
--- a/usr.bin/kdump/mkioctls
+++ b/usr.bin/kdump/mkioctls
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: mkioctls,v 1.28 2013/03/15 09:10:52 ratchov Exp $
+# $OpenBSD: mkioctls,v 1.29 2013/07/16 00:41:03 guenther Exp $
#
# Copyright (c) 1994
@@ -72,6 +72,7 @@ BEGIN {
print "#include <sys/radioio.h>"
print "#include <sys/scanio.h>"
print "#include <sys/scsiio.h>"
+ print "#include <sys/tty.h>"
print "#include <crypto/cryptodev.h>"
print "#include <dev/biovar.h>"
print "#include <dev/systrace.h>"
@@ -88,7 +89,7 @@ BEGIN {
print ""
}
-/^#[ ]*define[ ]*(AGPIOC_|ATAIO|AUDIO_|BIOC|CDIO|CIOC|CHIO|DIOC|GPIO|TIO|FIO|MTIOC|SIO|OSIO|SESIOC_|SIOC|PCIOC|PPPIOC|PPPOE|RIOC|RND|STRIOC|SCIOC|OSCIOC|TUN|VNDIOC|WSKBD|WSMOUSE|WSDISPLAY|WSMUX)[A-Z_0-9]*[ ]*_IO/ {
+/^[ ]*#[ ]*define[ ]+(AGPIOC_|ATAIO|AUDIO_|BIOC|CDIO|CIOC|CHIO|DIOC|GPIO|TIO|FIO|MTIOC|SIO|OSIO|SESIOC_|SIOC|PCIOC|PPPIOC|PPPOE|RIOC|RND|STRIOC|SCIOC|OSCIOC|TUN|VNDIOC|WSKBD|WSMOUSE|WSDISPLAY|WSMUX|PTM)[A-Z_0-9]*[ ]+_IO/ {
# find where the name starts
for (i = 1; i <= NF; i++)