aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-02-25 21:05:12 +0800
committerkrion <krion@FreeBSD.org>2004-02-25 21:05:12 +0800
commit80851fd35f271dce28a8bd8d9ae389bc111290fb (patch)
tree15cd3ef9e129a0af6aaf83fef045901075dcd349 /x11
parent6003a510448ecec34482c42adb25d95d74be3fb5 (diff)
downloadfreebsd-ports-gnome-80851fd35f271dce28a8bd8d9ae389bc111290fb.tar.gz
freebsd-ports-gnome-80851fd35f271dce28a8bd8d9ae389bc111290fb.tar.zst
freebsd-ports-gnome-80851fd35f271dce28a8bd8d9ae389bc111290fb.zip
- Add patches to fix nvidia drivers after 502103
__FreeBSD_version PR: ports/63326 Submitted by: maintainer
Diffstat (limited to 'x11')
-rw-r--r--x11/nvidia-driver/files/patch-src::nv-freebsd.h12
-rw-r--r--x11/nvidia-driver/files/patch-src::nvidia_ctl.c15
-rw-r--r--x11/nvidia-driver/files/patch-src::nvidia_dev.c15
3 files changed, 42 insertions, 0 deletions
diff --git a/x11/nvidia-driver/files/patch-src::nv-freebsd.h b/x11/nvidia-driver/files/patch-src::nv-freebsd.h
new file mode 100644
index 000000000000..33dcd6f96347
--- /dev/null
+++ b/x11/nvidia-driver/files/patch-src::nv-freebsd.h
@@ -0,0 +1,12 @@
+--- src/nv-freebsd.h.orig Wed Feb 25 18:55:35 2004
++++ src/nv-freebsd.h Wed Feb 25 18:55:49 2004
+@@ -217,7 +217,9 @@
+ } nvidia_softc_t;
+
+
++#if __FreeBSD_version < 502103
+ #define CDEV_MAJOR 180
++#endif
+ #define CDEV_CTL_MINOR 255
+
+ extern devclass_t nvidia_devclass;
diff --git a/x11/nvidia-driver/files/patch-src::nvidia_ctl.c b/x11/nvidia-driver/files/patch-src::nvidia_ctl.c
new file mode 100644
index 000000000000..e5f00fbd65f3
--- /dev/null
+++ b/x11/nvidia-driver/files/patch-src::nvidia_ctl.c
@@ -0,0 +1,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
++#endif
+ #endif
+ };
diff --git a/x11/nvidia-driver/files/patch-src::nvidia_dev.c b/x11/nvidia-driver/files/patch-src::nvidia_dev.c
new file mode 100644
index 000000000000..0c02c4f8af43
--- /dev/null
+++ b/x11/nvidia-driver/files/patch-src::nvidia_dev.c
@@ -0,0 +1,15 @@
+--- src/nvidia_dev.c.old Wed May 28 12:51:52 2003
++++ src/nvidia_dev.c Sun Feb 22 13:36:25 2004
+@@ -45,7 +45,12 @@
+ .d_poll = nvidia_dev_poll,
+ .d_mmap = nvidia_dev_mmap,
+ .d_name = "nvidia",
++#if __FreeBSD_version < 502103
+ .d_maj = CDEV_MAJOR,
+ .d_flags = D_MEM|D_TRACKCLOSE
++#else
++ .d_version = D_VERSION,
++ .d_flags = D_MEM|D_TRACKCLOSE|D_NEEDGIANT
++#endif
+ #endif
+ };