Unbreak the build on recent -CURRENT (after cap_rights_t type was changed

from uint64_t to a structure in r255219).

PR:	ports/181840
This commit is contained in:
Alexey Dokuchaev 2013-09-06 05:07:15 +00:00
parent 61a62182a7
commit e4fc09f30f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=326460

View file

@ -154,6 +154,12 @@ post-patch: .SILENT
${REINPLACE_CMD} -e '/kmem_/s/kernel_map/kernel_arena/' \
${WRKSRC}/src/nvidia_subr.c
.endif
# Adopt to cap_rights_t type change in FreeBSD src SVN r255219
.if ${OSVERSION} > 1000051
${REINPLACE_CMD} -e 's/u_long cmd;/& cap_rights_t rights;/ ; \
s/CAP_IOCTL/cap_rights_init(\&rights, &)/' \
${WRKSRC}/src/nvidia_linux.c
.endif
# Fix stack buffer overflow in nvidia_sysctl_bus_type()
.if ${NVVERSION} < 3192300
${REINPLACE_CMD} -E '/bus_type\[4\]/d ; \