Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 2008 16:52:18 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        Diego Depaoli <trebestie@gmail.com>
Cc:        freebsd-current@freebsd.org, Stefan Ehmann <shoesoft@gmx.net>
Subject:   Re: Today build breaks nvidia driver
Message-ID:  <20080920165125.B65801@maildrop.int.zabbadoz.net>
In-Reply-To: <83e5fb980809200853s2e1bbb19i7c0821776936ab46@mail.gmail.com>
References:  <83e5fb980809200158h4650ad2ci55883ef93e69d1d8@mail.gmail.com> <200809201237.48903.shoesoft@gmx.net> <83e5fb980809200853s2e1bbb19i7c0821776936ab46@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Sep 2008, Diego Depaoli wrote:

> 2008/9/20 Stefan Ehmann <shoesoft@gmx.net>:
>> On Saturday 20 September 2008 10:58:49 Diego Depaoli wrote:
>>> Hi all,
>>> I've some trouble building nvidia driver after today world/kernel.
>>
>>> cc1: warnings being treated as errors
>>> nvidia_os.c: In function 'os_is_administrator':
>>> nvidia_os.c:168: warning: implicit declaration of function 'suser'
>>> nvidia_os.c:168: warning: nested extern declaration of 'suser'
>>> *** Error code 1
>>
>> Ran across this problem yesterday:
>>
>> As a quick hack you can change one line in nvidia_os.c:
>>
>>  BOOL NV_API_CALL os_is_administrator(PHWINFO pDev)
>>  {
>> -    return suser(CURTHREAD) ? FALSE : TRUE;
>> +    return priv_check(CURTHREAD, PRIV_DRIVER) ? FALSE : TRUE;
>>  }

that should be conditionalized with __FreeBSD_version as Attilio
had said (just mentioning again before this patch hits ports@ ;)

-- 
Bjoern A. Zeeb              Stop bit received. Insert coin for new game.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080920165125.B65801>