diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2016-08-17 10:51:31 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2016-08-17 11:28:55 +0200 |
commit | b9e89c918f13374772a72cefbe0cda6bb6bc88e4 (patch) | |
tree | a6304eb159ff8b0809cee76f543025b626c3bcef /src/nm-auth-utils.c | |
parent | 1f2eeb85d80d0a484cc842ddb0277dd93a7916f9 (diff) | |
download | NetworkManager-b9e89c918f13374772a72cefbe0cda6bb6bc88e4.tar.gz |
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: 1cf35cb26b6cc04f8b2c51c3cde4bc08ef311062
Diffstat (limited to 'src/nm-auth-utils.c')
-rw-r--r-- | src/nm-auth-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nm-auth-utils.c b/src/nm-auth-utils.c index e1761cab71..a6bc506cfb 100644 --- a/src/nm-auth-utils.c +++ b/src/nm-auth-utils.c @@ -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); |