diff options
author | Martin Blapp <mbr@FreeBSD.org> | 2004-03-03 10:15:11 +0000 |
---|---|---|
committer | Martin Blapp <mbr@FreeBSD.org> | 2004-03-03 10:15:11 +0000 |
commit | a0bb6deda55cefb5dd62a447aea44677f8188ed0 (patch) | |
tree | dee05d680374e740efb65a72ac4bd722e917338a /emulators/rtc/files | |
parent | e79fa9453b469b6fbdc91617500848d48ea843ea (diff) | |
download | ports-a0bb6deda55cefb5dd62a447aea44677f8188ed0.tar.gz ports-a0bb6deda55cefb5dd62a447aea44677f8188ed0.zip |
Make rtc module work with FreeBSD 502104.
Notes
Notes:
svn path=/head/; revision=102801
Diffstat (limited to 'emulators/rtc/files')
-rw-r--r-- | emulators/rtc/files/rtc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/emulators/rtc/files/rtc.c b/emulators/rtc/files/rtc.c index 9b22c636568c..1b4a315e15d8 100644 --- a/emulators/rtc/files/rtc.c +++ b/emulators/rtc/files/rtc.c @@ -93,13 +93,19 @@ static int rtc_modeevent(module_t mod, int cmd, void *arg); static struct cdevsw rtc_cdevsw = { #if __FreeBSD_version >= 500104 +#if __FreeBSD_version >= 502104 + .d_version = D_VERSION, + .d_flags = D_NEEDGIANT, +#endif .d_open = rtc_open, .d_close = rtc_close, .d_ioctl = rtc_ioctl, .d_poll = rtc_poll, .d_read = rtc_read, .d_name = DEVICE_NAME, +#if __FreeBSD_version < 502104 .d_maj = CDEV_MAJOR, +#endif #else /* open */ rtc_open, /* close */ rtc_close, |