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:
Marco Trevisan (Treviño)
2020-11-27 18:21:29 +01:00
parent 5e18d46971
commit 3f2174676e
3 changed files with 10 additions and 0 deletions

View File

@ -9,3 +9,6 @@
/* Define to the version of this package. */
#mesondefine VERSION
/* Whether current polkit version supports autopointers */
#mesondefine POLKIT_HAS_AUTOPOINTERS