summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-08-15 19:48:33 +0300
committermonsta <[email protected]>2016-08-15 21:35:31 +0300
commit8317f3dd536c10ac06ff29b85ee7d76b190472ce (patch)
tree28c2d1b91df4cb415f2f4cef0698664cc2d1415f
parentccaafea1b11827738d05622e882afa0a6f5355fe (diff)
downloadmate-applets-8317f3dd536c10ac06ff29b85ee7d76b190472ce.tar.bz2
mate-applets-8317f3dd536c10ac06ff29b85ee7d76b190472ce.tar.xz
cpufreq: fix build warning when polkit is disabled
-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"