aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/kbdmux
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2006-09-27 19:57:02 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2006-09-27 19:57:02 +0000
commit9fddcc6661d2cf7bb8e704308437d2b1674b50be (patch)
treea886251dab8c19f71a5bfd0199ec1d9b327b3513 /sys/modules/kbdmux
parent3ea944faa0a3cf1e2fdcd8279ea45c038d5173cf (diff)
downloadsrc-9fddcc6661d2cf7bb8e704308437d2b1674b50be.tar.gz
src-9fddcc6661d2cf7bb8e704308437d2b1674b50be.zip
Fix our ioctl(2) implementation when the argument is "int". New
ioctls passing integer arguments should use the _IOWINT() macro. This fixes a lot of ioctl's not working on sparc64, most notable being keyboard/syscons ioctls. Full ABI compatibility is provided, with the bonus of fixing the handling of old ioctls on sparc64. Reviewed by: bde (with contributions) Tested by: emax, marius MFC after: 1 week
Notes
Notes: svn path=/head/; revision=162711
Diffstat (limited to 'sys/modules/kbdmux')
-rw-r--r--sys/modules/kbdmux/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/modules/kbdmux/Makefile b/sys/modules/kbdmux/Makefile
index 2d64ddf7f5fb..70b39a05a9cf 100644
--- a/sys/modules/kbdmux/Makefile
+++ b/sys/modules/kbdmux/Makefile
@@ -4,9 +4,12 @@
.PATH: ${.CURDIR}/../../dev/kbdmux
KMOD= kbdmux
-SRCS= kbdmux.c opt_kbd.h bus_if.h device_if.h
+SRCS= kbdmux.c opt_compat.h opt_kbd.h bus_if.h device_if.h
.if !defined(KERNBUILDDIR)
+opt_compat.h:
+ echo "#define COMPAT_FREEBSD6 1" > ${.TARGET}
+
opt_kbd.h:
echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET}
.endif