Unbreak legacy (pre-195.22) drivers build on 9.X after SVN r225617 by kmacy@.

PR:		ports/161839
Submitted by:	Barry Tigner
This commit is contained in:
Alexey Dokuchaev 2011-11-08 06:22:02 +00:00
parent 869e9fd573
commit f273d6785e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285275

View file

@ -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