1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Correct previous fix: required prototypes were removed from <sys/systm.h>

not that long ago.  Check for suitable OSVERSION so the port is buildable
on 6.x/5.x again.

Approved by:	portmgr (pav)
Pointy hat to:	danfe
This commit is contained in:
Alexey Dokuchaev 2007-12-03 10:10:42 +00:00
parent 53fb30ab2d
commit c4e35c08eb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202885

View File

@ -96,9 +96,11 @@ post-patch: .SILENT
${REINPLACE_CMD} -e 's,pci/agpvar\.h,dev/agp/agpvar.h,' \
${WRKSRC}/src/nv-freebsd.h
.endif
# Building with -Werror requires prototype for suser()
# Building with -Werror requires prototype for suser() which was moved
.if ${OSVERSION} >= 700048
${REINPLACE_CMD} -e '15s,^,#include <sys/priv.h>,' \
${WRKSRC}/src/nvidia_os.c
.endif
.if defined(WITH_FREEBSD_AGP)
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \
${WRKSRC}/src/nv-freebsd.h