Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 844919 | Differences between
and this patch

Collapse All | Expand All

(-)a/config.h.meson (+3 lines)
Lines 33-35 Link Here
33
33
34
/* Define if fdwalk is available in libc */
34
/* Define if fdwalk is available in libc */
35
#mesondefine HAVE_FDWALK
35
#mesondefine HAVE_FDWALK
36
37
/* Define if polkit defines autocleanup functions */
38
#mesondefine HAVE_POLKIT_AUTOCLEANUP
(-)a/meson.build (+7 lines)
Lines 169-174 cdata.set('HAVE_FDWALK', Link Here
169
          cc.has_function('fdwalk')
169
          cc.has_function('fdwalk')
170
)
170
)
171
171
172
polkit_has_autocleanup = cc.compiles(
173
  '#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
174
  #include <polkitagent/polkitagent.h>
175
  void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }',
176
  dependencies: polkit_dep)
177
cdata.set('HAVE_POLKIT_AUTOCLEANUP', polkit_has_autocleanup)
178
172
buildtype = get_option('buildtype')
179
buildtype = get_option('buildtype')
173
if buildtype != 'plain'
180
if buildtype != 'plain'
174
  all_warnings = [
181
  all_warnings = [
(-)a/src/shell-polkit-authentication-agent.h (-1 / +2 lines)
Lines 14-21 Link Here
14
14
15
G_BEGIN_DECLS
15
G_BEGIN_DECLS
16
16
17
#ifndef HAVE_POLKIT_AUTOCLEANUP
17
/* Polkit doesn't have g_autoptr support, thus we have to manually set the autoptr function here */
18
/* Polkit doesn't have g_autoptr support, thus we have to manually set the autoptr function here */
18
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
19
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
20
#endif
19
21
20
#define SHELL_TYPE_POLKIT_AUTHENTICATION_AGENT (shell_polkit_authentication_agent_get_type())
22
#define SHELL_TYPE_POLKIT_AUTHENTICATION_AGENT (shell_polkit_authentication_agent_get_type())
21
23
22
- 

Return to bug 844919