diff options
author | danfe <danfe@FreeBSD.org> | 2008-10-20 20:47:09 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2008-10-20 20:47:09 +0800 |
commit | 0caaba758ca573d59e89b2d864ffb461ea78770d (patch) | |
tree | b023744e671a790952b37e4efb79e5c12f31fcee /x11/nvidia-driver | |
parent | f6d5b734ae175bd6ccb64f3447fc36c0622db8bc (diff) | |
download | freebsd-ports-graphics-0caaba758ca573d59e89b2d864ffb461ea78770d.tar.gz freebsd-ports-graphics-0caaba758ca573d59e89b2d864ffb461ea78770d.tar.zst freebsd-ports-graphics-0caaba758ca573d59e89b2d864ffb461ea78770d.zip |
Unbreak on recent -CURRENT after suser() -> priv_check() API changes.
Diffstat (limited to 'x11/nvidia-driver')
-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 ee5708617ea..4b478cdf147 100644 --- a/x11/nvidia-driver/Makefile +++ b/x11/nvidia-driver/Makefile @@ -85,6 +85,12 @@ post-patch: .SILENT ${REINPLACE_CMD} -e '15s,^,#include <sys/priv.h>,' \ ${WRKSRC}/src/nvidia_os.c .endif +# Switch from suser() to priv_check() API on recent -CURRENT +.if ${OSVERSION} >= 800049 + ${REINPLACE_CMD} -e \ + 's/suser(CURTHREAD)/priv_check(CURTHREAD, PRIV_DRIVER)/' \ + ${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 |