1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add OSVERSION check in order to apply d_mmap() fix only when required.

Feature safe:	yes
This commit is contained in:
Alexey Dokuchaev 2010-02-19 17:38:17 +00:00
parent 81ee5011c8
commit 53d4b141a7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=250072

View File

@ -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/' \