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:
parent
2902f54fb4
commit
0d2d7e8e7a
@ -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_ */
|
||||
|
@ -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>"
|
||||
|
Loading…
x
Reference in New Issue
Block a user