diff --git a/lib/Makefile.am b/lib/Makefile.am index 5b51686c..3e67fd1c 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -99,7 +99,6 @@ libsysprof_@API_VERSION@_la_SOURCES = \ libsysprof_@API_VERSION@_la_CFLAGS = \ -I$(srcdir)/util \ $(GIO_CFLAGS) \ - $(POLKIT_CFLAGS) \ $(WARN_CFLAGS) \ $(NULL) @@ -107,7 +106,6 @@ libsysprof_@API_VERSION@_la_LIBADD = \ libutil.la \ -lstdc++ \ $(GIO_LIBS) \ - $(POLKIT_LIBS) \ $(NULL) if ENABLE_SYSPROFD diff --git a/lib/sp-perf-counter.c b/lib/sp-perf-counter.c index a6fad7af..ed3a1143 100644 --- a/lib/sp-perf-counter.c +++ b/lib/sp-perf-counter.c @@ -42,13 +42,16 @@ #include #include #include -#include #include #include #include #include #include +#ifdef ENABLE_SYSPROFD +# include +#endif + #include "sp-perf-counter.h" #include "util.h"