Skip to content
Snippets Groups Projects
Commit ec2e657d authored by John Baldwin's avatar John Baldwin
Browse files

x11/nvidia-driver: Use a valid function declaration for nvlink_allocLock.

Differential Revision:	https://reviews.freebsd.org/D40172
parent f07f24f9
No related branches found
No related tags found
No related merge requests found
......@@ -266,6 +266,9 @@ post-patch: .SILENT
${REINPLACE_CMD} -e '/vm_offset_t address;/s,vm_offset_t ,void *,' \
${WRKSRC}/src/${NVSRC}/nvidia_subr.c
.endif
# Fix a K&R prototype
${REINPLACE_CMD} -e '/nvlink_allocLock/s,(),(void),' \
${WRKSRC}/src/${NVSRC}/nvlink_freebsd.c
# Finally, process OPTIONS
.if ${PORT_OPTIONS:MFREEBSD_AGP}
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment