summaryrefslogtreecommitdiff
path: root/cpufreq/src/cpufreq-selector
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-08-15 19:48:33 +0300
committermonsta <[email protected]>2016-08-15 19:48:33 +0300
commita1f837c68f2b7aead7a79663a6efe326fc8dfec7 (patch)
tree16a549eaccf9d2252fa44136735d5316acc6de72 /cpufreq/src/cpufreq-selector
parentddf0af75183bc2938b6dfb93d6faab3702e8005d (diff)
downloadmate-applets-a1f837c68f2b7aead7a79663a6efe326fc8dfec7.tar.bz2
mate-applets-a1f837c68f2b7aead7a79663a6efe326fc8dfec7.tar.xz
cpufreq: fix build warning when polkit is disabled
Diffstat (limited to 'cpufreq/src/cpufreq-selector')
-rw-r--r--cpufreq/src/cpufreq-selector/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpufreq/src/cpufreq-selector/main.c b/cpufreq/src/cpufreq-selector/main.c
index 37734172..d048df31 100644
--- a/cpufreq/src/cpufreq-selector/main.c
+++ b/cpufreq/src/cpufreq-selector/main.c
@@ -28,6 +28,8 @@
#ifdef HAVE_POLKIT
#include "cpufreq-selector-service.h"
+#else
+#include <unistd.h>
#endif
#include "cpufreq-selector-factory.h"