x11/nvidia-driver issues compiling on 9.X

Jan Beich jbeich at vfemail.net
Mon Jan 11 05:00:40 UTC 2016

Ultima <ultima1252 at gmail.com> writes:

> nvidia-modeset-freebsd.c:563:29: error: sys/caprights.h: No such file or
> directory

Drop the line. <sys/caprights.h> is implicitly included on 10+ systems.

> nvidia-modeset-freebsd.c:593: warning: implicit declaration of function
> 'cap_rights_init'

See how nv-freebsd.h and nvidia_linux.c fixed this issue and also use
slightly more correct __FreeBSD_version.

    // before r255219
    status = fget(curthread, fd, CAP_IOCTL, &fp);

    // after  r255219
    cap_rights_t rights;
    status = fget(curthread, fd, cap_rights_init(&rights, CAP_IOCTL), &fp);

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 602 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160111/b18e2368/attachment.sig>

More information about the freebsd-ports mailing list