aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/vkbd
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/vkbd
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/vkbd')
-rw-r--r--sys/modules/vkbd/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/modules/vkbd/Makefile b/sys/modules/vkbd/Makefile
index 29591dc37efa..500274cf94b1 100644
--- a/sys/modules/vkbd/Makefile
+++ b/sys/modules/vkbd/Makefile
@@ -4,9 +4,12 @@
.PATH: ${.CURDIR}/../../dev/vkbd
KMOD= vkbd
-SRCS= vkbd.c opt_kbd.h
+SRCS= vkbd.c opt_compat.h opt_kbd.h
.if !defined(KERNBUILDDIR)
+opt_compat.h:
+ echo "#define COMPAT_FREEBSD6 1" > ${.TARGET}
+
opt_kbd.h:
echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET}
.endif