summaryrefslogtreecommitdiff
path: root/emulators/rtc/files
diff options
context:
space:
mode:
authorMike Silbersack <silby@FreeBSD.org>2004-03-13 21:20:03 +0000
committerMike Silbersack <silby@FreeBSD.org>2004-03-13 21:20:03 +0000
commit2d30e526bac11c6706e8cdefd66613a7d3a0d85d (patch)
tree49e8300e5a859f1fc4a1b30dd0a16b3227f144ef /emulators/rtc/files
parent- Fix build (USE_GETOPT_LONG) (diff)
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).
Diffstat (limited to 'emulators/rtc/files')
-rw-r--r--emulators/rtc/files/rtc.c3
1 files changed, 2 insertions, 1 deletions
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,