aboutsummaryrefslogtreecommitdiffstats
path: root/x11/nvidia-driver/files/patch-src::nvidia_ctl.c
blob: cf40047c6a0383190d5b5e5cd9cda3c70e9bc747 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/nvidia_ctl.c.old    Sun Feb 22 13:05:46 2004
+++ src/nvidia_ctl.c    Sun Feb 22 13:07:25 2004
@@ -43,7 +43,12 @@
     .d_ioctl =     nvidia_ctl_ioctl,
     .d_poll =      nvidia_ctl_poll,
     .d_name =      "nvidiactl",
+#if __FreeBSD_version < 502103
     .d_maj =       CDEV_MAJOR,
     .d_flags =     D_TRACKCLOSE
+#else
+    .d_version =   D_VERSION, 
+    .d_flags =     D_NEEDGIANT|D_TRACKCLOSE
+#endif 
 #endif
 };