aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2010-02-20 01:38:17 +0800
committerdanfe <danfe@FreeBSD.org>2010-02-20 01:38:17 +0800
commita31cd92b0bb7fe7e2161b3440d873dfa04502fc2 (patch)
tree1bdc0694e804d525733b87be356d6b187d5703b9 /x11
parent019b852907ad563beaf01af72033a510ecf87016 (diff)
downloadfreebsd-ports-gnome-a31cd92b0bb7fe7e2161b3440d873dfa04502fc2.tar.gz
freebsd-ports-gnome-a31cd92b0bb7fe7e2161b3440d873dfa04502fc2.tar.zst
freebsd-ports-gnome-a31cd92b0bb7fe7e2161b3440d873dfa04502fc2.zip
Add OSVERSION check in order to apply d_mmap() fix only when required.
Feature safe: yes
Diffstat (limited to 'x11')
-rw-r--r--x11/nvidia-driver/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 91fe5b42172a..820074d87912 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -91,7 +91,7 @@ post-patch: .SILENT
# We should support -CURRENT: kill the check
${REINPLACE_CMD} '24,26d' ${WRKSRC}/src/nv-freebsd.h
# Adjust for updated d_mmap() in recent -CURRENT
-.if ${NVVERSION} < 1952200
+.if ${OSVERSION} > 900005 && ${NVVERSION} < 1952200
${REINPLACE_CMD} 's/vm_offset_t offset/vm_ooffset_t offset/ ; \
s/vm_offset_t \*address/vm_paddr_t *address/ ; \
s/int nprot/&, vm_memattr_t *memattr/' \