summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrees <rees@FreeBSD.org>2004-02-22 05:49:38 +0000
committerrees <rees@FreeBSD.org>2004-02-22 05:49:38 +0000
commit9a6dbee3f6f16a6dfecbfe79b7e6020ad8970db2 (patch)
tree9e37f5cade4facdb702094a7f258af6eda1422d0
parent19731b131a2c88901c4108449e29d91d539dbb28 (diff)
downloadFreeBSD-src-9a6dbee3f6f16a6dfecbfe79b7e6020ad8970db2.zip
FreeBSD-src-9a6dbee3f6f16a6dfecbfe79b7e6020ad8970db2.tar.gz
protect new cdevsw entries with "#if (__FreeBSD_version > 502102)"
-rw-r--r--sys/nfs4client/nfs4_dev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/nfs4client/nfs4_dev.c b/sys/nfs4client/nfs4_dev.c
index 4a318e2..645c4ea 100644
--- a/sys/nfs4client/nfs4_dev.c
+++ b/sys/nfs4client/nfs4_dev.c
@@ -94,13 +94,15 @@ static d_ioctl_t nfs4dev_ioctl;
static d_poll_t nfs4dev_poll;
static struct cdevsw nfs4dev_cdevsw = {
+#if (__FreeBSD_version > 502102)
.d_version = D_VERSION,
.d_flags = D_NEEDGIANT,
+#endif
.d_open = nfs4dev_open,
.d_close = nfs4dev_close,
.d_ioctl = nfs4dev_ioctl,
.d_poll = nfs4dev_poll,
- .d_name = NFS4DEV_NAME
+ .d_name = NFS4DEV_NAME,
};
static int nfs4dev_reply(caddr_t);
OpenPOWER on IntegriCloud