mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
device: Re-define polkit auto-pointer funcs if not defined
In case we're using an old polkit version that does not support auto-pointers, we need to re-define such functions manually or fprintd won't compile. Given that polkit doesn't provide us version informations in headers we need to get that from pkg-config
This commit is contained in:
@ -129,6 +129,12 @@ enum fprint_device_signals {
|
||||
static guint32 last_id = ~0;
|
||||
static guint signals[NUM_SIGNALS] = { 0, };
|
||||
|
||||
#ifndef POLKIT_HAS_AUTOPOINTERS
|
||||
/* FIXME: Remove this once we're fine to depend on polkit 0.114 */
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthorizationResult, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitSubject, g_object_unref)
|
||||
#endif
|
||||
|
||||
static void
|
||||
session_data_unref(SessionData *session)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user