x11/nvidia-driver issues compiling on 9.X
ultima1252 at gmail.com
Tue Jan 12 04:38:55 UTC 2016
Thank you Jan Beich. That was it!. Also thanks for providing all the
detailed information. Vary helpful =]
On Sun, Jan 10, 2016 at 11:59 PM, Jan Beich <jbeich at vfemail.net> wrote:
> 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);
More information about the freebsd-ports