From 2d30e526bac11c6706e8cdefd66613a7d3a0d85d Mon Sep 17 00:00:00 2001 From: Mike Silbersack Date: Sat, 13 Mar 2004 21:20:03 +0000 Subject: Update the rtc device to use dynamic numbering on -current. In order to accomdate this change, stop using device nodes in /usr/compat/linux/dev and instead rely on the linuxalator passing through requests to the real /dev. (This second change also applies to 4.x). --- emulators/rtc/files/rtc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emulators/rtc/files') diff --git a/emulators/rtc/files/rtc.c b/emulators/rtc/files/rtc.c index 8f0407f1f319..3311cd7ccab0 100644 --- a/emulators/rtc/files/rtc.c +++ b/emulators/rtc/files/rtc.c @@ -96,6 +96,8 @@ static struct cdevsw rtc_cdevsw = { #if __FreeBSD_version >= 502103 .d_version = D_VERSION, .d_flags = D_NEEDGIANT, +#else + .d_maj = CDEV_MAJOR, #endif .d_open = rtc_open, .d_close = rtc_close, @@ -103,7 +105,6 @@ static struct cdevsw rtc_cdevsw = { .d_poll = rtc_poll, .d_read = rtc_read, .d_name = DEVICE_NAME, - .d_maj = CDEV_MAJOR, #else /* open */ rtc_open, /* close */ rtc_close, -- cgit v1.2.3