mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 01:40:16 +01:00
core: fix builds without polkit support
Fix the following build error:
nm-auth-utils.c: In function ‘nm_auth_chain_add_call’:
nm-auth-utils.c:402:46: error: ‘DBUS_GERROR’ undeclared (first use in this function)
call->chain->error = g_error_new_literal (DBUS_GERROR,
Fixes: 1cf35cb26b
(cherry picked from commit b9e89c918f)
This commit is contained in:
parent
ddf17c31c6
commit
8540ca3a8a
1 changed files with 2 additions and 2 deletions
|
|
@ -399,8 +399,8 @@ nm_auth_chain_add_call (NMAuthChain *self,
|
|||
call);
|
||||
#else
|
||||
if (!call->chain->error) {
|
||||
call->chain->error = g_error_new_literal (DBUS_GERROR,
|
||||
DBUS_GERROR_FAILED,
|
||||
call->chain->error = g_error_new_literal (NM_MANAGER_ERROR,
|
||||
NM_MANAGER_ERROR_FAILED,
|
||||
"Polkit support is disabled at compile time");
|
||||
}
|
||||
call->call_idle_id = g_idle_add ((GSourceFunc) auth_call_complete, call);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue