Add support for old TTY ioctls to kdump.

At first I allowed ioctl_compat.h to be included, but it just returned
an empty file. I had to do this, to keep kdump happy. I really want to
raise a compiler error when including this header, so now it will just
throw an error if you don't set COMPAT_43TTY.
This commit is contained in:
Ed Schouten 2009-05-09 15:09:40 +00:00
parent 0d53a17bde
commit f31b4b6a80
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191936
2 changed files with 1 additions and 4 deletions

View file

@ -38,8 +38,6 @@
#ifndef _SYS_IOCTL_COMPAT_H_
#define _SYS_IOCTL_COMPAT_H_
#ifdef _KERNEL
#ifndef COMPAT_43TTY
#error "Definitions not available without TTY ioctl compat."
#endif
@ -151,6 +149,4 @@ struct sgttyb {
#define TIOCGLTC _IOR('t',116,struct ltchars)/* get local special chars*/
#define OTIOCCONS _IO('t', 98) /* for hp300 -- sans int arg */
#endif /* _KERNEL */
#endif /* !_SYS_IOCTL_COMPAT_H_ */

View file

@ -37,6 +37,7 @@ awk -v x="$ioctl_includes" 'BEGIN {print x}' |
BEGIN {
print "/* XXX obnoxious prerequisites. */"
print "#define COMPAT_43"
print "#define COMPAT_43TTY"
print "#include <sys/param.h>"
print "#include <sys/devicestat.h>"
print "#include <sys/disklabel.h>"