summaryrefslogtreecommitdiffstats
path: root/sys/nfs4client/nfs4_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nfs4client/nfs4_dev.c')
-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