diff options
author | krion <krion@FreeBSD.org> | 2004-02-25 13:05:12 +0000 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-02-25 13:05:12 +0000 |
commit | 80851fd35f271dce28a8bd8d9ae389bc111290fb (patch) | |
tree | 15cd3ef9e129a0af6aaf83fef045901075dcd349 /x11 | |
parent | 6003a510448ecec34482c42adb25d95d74be3fb5 (diff) | |
download | FreeBSD-ports-80851fd35f271dce28a8bd8d9ae389bc111290fb.zip FreeBSD-ports-80851fd35f271dce28a8bd8d9ae389bc111290fb.tar.gz |
- 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.h | 12 | ||||
-rw-r--r-- | x11/nvidia-driver/files/patch-src::nvidia_ctl.c | 15 | ||||
-rw-r--r-- | x11/nvidia-driver/files/patch-src::nvidia_dev.c | 15 |
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 0000000..33dcd6f --- /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 0000000..e5f00fb --- /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 0000000..0c02c4f --- /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 + }; |