diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-09-06 05:07:15 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-09-06 05:07:15 +0000 |
commit | e4fc09f30f1ae06354a61c52fa37768e2a467d6a (patch) | |
tree | b22d97d9d6fd41a0a4c9833a72654046cb91bacc /x11 | |
parent | 61a62182a7a0ca518de36fca84e2f4ff22bcd47c (diff) | |
download | ports-e4fc09f30f1ae06354a61c52fa37768e2a467d6a.tar.gz ports-e4fc09f30f1ae06354a61c52fa37768e2a467d6a.zip |
Notes
Diffstat (limited to 'x11')
-rw-r--r-- | x11/nvidia-driver/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile index a0c6c0debf9c..e7bbf1c1c94d 100644 --- a/x11/nvidia-driver/Makefile +++ b/x11/nvidia-driver/Makefile @@ -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 ; \ |