mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
perf: polkit is optional for the library
So changing this was a little backwards. The goal here is to allow using libsysprof-2 without polkit, it just won't have the ability to elevate privileges.
This commit is contained in:
@ -42,13 +42,16 @@
|
||||
#include <errno.h>
|
||||
#include <gio/gio.h>
|
||||
#include <gio/gunixfdlist.h>
|
||||
#include <polkit/polkit.h>
|
||||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef ENABLE_SYSPROFD
|
||||
# include <polkit/polkit.h>
|
||||
#endif
|
||||
|
||||
#include "sp-perf-counter.h"
|
||||
|
||||
#include "util.h"
|
||||
|
||||
Reference in New Issue
Block a user