diff options
author | knu <knu@FreeBSD.org> | 2001-09-16 15:01:44 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-09-16 15:01:44 +0800 |
commit | 94c41b94e4925b54a7d33685e8c003f60a83d741 (patch) | |
tree | 4673aaf25fb511b997cb52fbbcd617f36c9e4139 /emulators | |
parent | 5a21068c5a34fce9ded8193f3cd0dc3feb7338b1 (diff) | |
download | freebsd-ports-gnome-94c41b94e4925b54a7d33685e8c003f60a83d741.tar.gz freebsd-ports-gnome-94c41b94e4925b54a7d33685e8c003f60a83d741.tar.zst freebsd-ports-gnome-94c41b94e4925b54a7d33685e8c003f60a83d741.zip |
- Conditionalize bmaj and kqfilter in cdevsw.
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/rtc/Makefile | 2 | ||||
-rw-r--r-- | emulators/rtc/files/rtc.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/emulators/rtc/Makefile b/emulators/rtc/Makefile index 401fb6672c4d..1f00a81fa2c4 100644 --- a/emulators/rtc/Makefile +++ b/emulators/rtc/Makefile @@ -6,7 +6,7 @@ # PORTNAME= rtc -PORTVERSION= 2001.09.16 +PORTVERSION= 2001.09.16.1 CATEGORIES= emulators linux MASTER_SITES= # none DISTFILES= # none diff --git a/emulators/rtc/files/rtc.c b/emulators/rtc/files/rtc.c index 9eb6a90dcf4d..b78ae8727c48 100644 --- a/emulators/rtc/files/rtc.c +++ b/emulators/rtc/files/rtc.c @@ -97,7 +97,12 @@ static struct cdevsw rtc_cdevsw = { /* dump */ nodump, /* psize */ nopsize, /* flags */ 0, - /* bmaj */ -1 +#if __FreeBSD_version <= 500018 + /* bmaj */ -1, +#endif +#if __FreeBSD_version >= 500018 || __FreeBSD_version >= 430000 + /* kqfilter */ nokqfilter, +#endif }; /* |