aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2011-11-08 14:22:02 +0800
committerdanfe <danfe@FreeBSD.org>2011-11-08 14:22:02 +0800
commit53c3641c8cccedeff96bb1bca7dd7fad766768a6 (patch)
tree45d444bc14fb7fe3adf23522af06bcead7d06d8a /x11
parent489af0a8025ca9078cf5cfac34e4354a9c873876 (diff)
downloadfreebsd-ports-gnome-53c3641c8cccedeff96bb1bca7dd7fad766768a6.tar.gz
freebsd-ports-gnome-53c3641c8cccedeff96bb1bca7dd7fad766768a6.tar.zst
freebsd-ports-gnome-53c3641c8cccedeff96bb1bca7dd7fad766768a6.zip
Unbreak legacy (pre-195.22) drivers build on 9.X after SVN r225617 by kmacy@.
PR: ports/161839 Submitted by: Barry Tigner
Diffstat (limited to 'x11')
-rw-r--r--x11/nvidia-driver/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 837b58da0320..d3b4784d45b3 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -103,6 +103,11 @@ post-patch: .SILENT
s/int nprot/&, vm_memattr_t *memattr/' \
${WRKSRC}/src/nvidia_dev.c
.endif
+# Catch up with FreeBSD SVN r225617
+.if ${OSVERSION} > 900043 && ${NVVERSION} < 1952200
+ ${REINPLACE_CMD} -e '/return/s/ioctl/sys_&/' \
+ ${WRKSRC}/src/nvidia_linux.c
+.endif
.if defined(WITH_FREEBSD_AGP)
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \
${WRKSRC}/src/nv-freebsd.h