build: Do not redefine polkit autocleanup
PolkitAgent recently added autocleanup functions itself, so check for their existence at configure time and only define our own when they don't exist upstream. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5490 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2296>
This commit is contained in:

committed by
Marge Bot

parent
eb538abc98
commit
1d0a08b5e2
@ -14,8 +14,10 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifndef HAVE_POLKIT_AUTOCLEANUP
|
||||
/* Polkit doesn't have g_autoptr support, thus we have to manually set the autoptr function here */
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
|
||||
#endif
|
||||
|
||||
#define SHELL_TYPE_POLKIT_AUTHENTICATION_AGENT (shell_polkit_authentication_agent_get_type())
|
||||
|
||||
|
Reference in New Issue
Block a user