Skip to content

Commit

Permalink
x11/nvidia-driver: Use a valid function declaration for nvlink_allocL…
Browse files Browse the repository at this point in the history
…ock.

Differential Revision:	https://reviews.freebsd.org/D40172
  • Loading branch information
bsdjhb committed May 25, 2023
1 parent f07f24f commit ec2e657
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x11/nvidia-driver/Makefile
Expand Up @@ -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/' \
Expand Down

0 comments on commit ec2e657

Please sign in to comment.