aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2007-12-03 10:10:42 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2007-12-03 10:10:42 +0000
commitc4e35c08eb6ab58872f1d7aba93561bc855df4f5 (patch)
tree1906b99c5de3dd0e6b4ee9824fb256dffeed9b0c /x11
parent53fb30ab2d7132d74e8a009d8d346d3102786e7d (diff)
downloadports-c4e35c08eb6ab58872f1d7aba93561bc855df4f5.tar.gz
ports-c4e35c08eb6ab58872f1d7aba93561bc855df4f5.zip
Notes
Diffstat (limited to 'x11')
-rw-r--r--x11/nvidia-driver/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index b460034283da..176a5444323d 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -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