summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/drm')
-rw-r--r--sys/dev/drm/drm_drv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/drm/drm_drv.h b/sys/dev/drm/drm_drv.h
index 7013955..cb50e1e 100644
--- a/sys/dev/drm/drm_drv.h
+++ b/sys/dev/drm/drm_drv.h
@@ -1439,7 +1439,11 @@ DRM(linux_ioctl)(DRM_OS_STRUCTPROC *p, struct linux_ioctl_args* args)
/*
* Pass the ioctl off to our standard handler.
*/
+#if (__FreeBSD_version >= 500000)
+ return(fo_ioctl(fp, cmd, data, p->td_ucred, p));
+#else
return(fo_ioctl(fp, cmd, data, p));
+#endif
}
#endif /* DRM_LINUX */
#endif /* __FreeBSD__ */
OpenPOWER on IntegriCloud