mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
build: fix build on macOS
This commit is contained in:
@ -4,12 +4,14 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifndef HAVE_POLKIT_AUTOPTR
|
||||
# include <polkit/polkit.h>
|
||||
#ifdef HAVE_POLKIT
|
||||
# ifndef HAVE_POLKIT_AUTOPTR
|
||||
# include <polkit/polkit.h>
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthority, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthorizationResult, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitSubject, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthority, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthorizationResult, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitSubject, g_object_unref)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2, 56, 0)
|
||||
|
||||
Reference in New Issue
Block a user