summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-05-09 15:09:40 +0000
committered <ed@FreeBSD.org>2009-05-09 15:09:40 +0000
commit0d2d7e8e7ad8ef95761315a750e9f83f45217a6b (patch)
tree93eded653397cc62583b92a0a84b797ecd36a3d8 /sys
parent2902f54fb4ea28264b15fd28d0d6c81fd524cebe (diff)
downloadFreeBSD-src-0d2d7e8e7ad8ef95761315a750e9f83f45217a6b.zip
FreeBSD-src-0d2d7e8e7ad8ef95761315a750e9f83f45217a6b.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/ioctl_compat.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/sys/ioctl_compat.h b/sys/sys/ioctl_compat.h
index 4164c89..f4a9af6 100644
--- a/sys/sys/ioctl_compat.h
+++ b/sys/sys/ioctl_compat.h
@@ -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_ */
OpenPOWER on IntegriCloud