aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/drm
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-08-17 02:36:16 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-08-17 02:36:16 +0000
commitd49fa1ca6ed75bd712b6eecb7383e9abe8b96943 (patch)
treefe31f7ea9a8713005d8ba378b027671dbea5c058 /sys/dev/drm
parentc068736a6139e9a60b6b4747f762a572e1b002f4 (diff)
Notes
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 701395519fc0..cb50e1eef8f8 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__ */