aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@openwide.fr>2015-09-20 12:31:58 +0200
committerAlexandra Yates <alexandra.yates@linux.intel.com>2015-09-25 14:28:24 -0700
commit3b46b64dd6ee6dc6b6454249a48e56d5d3ecd5a2 (patch)
treea7aafc3187c0aaa9511e5f1e734f58775dab0fa0
parent6849cead3326dd01a16ccc48a2686f66f2b1f7ae (diff)
downloadpowertop-2.0-3b46b64dd6ee6dc6b6454249a48e56d5d3ecd5a2.tar.gz
add missing sys/time.h header
struct timeval is defined in sys/time.h with a musl toolchain. Fixes: In file included from devices/devfreq.cpp:35:0: devices/devfreq.h:35:18: error: field ‘stamp_before’ has incomplete type ‘timeval’ struct timeval stamp_before, stamp_after; Signed-off-by: Romain Naour <romain.naour@openwide.fr>
-rw-r--r--src/devices/devfreq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/devices/devfreq.h b/src/devices/devfreq.h
index 16a60fb..4a8983b 100644
--- a/src/devices/devfreq.h
+++ b/src/devices/devfreq.h
@@ -27,6 +27,7 @@
#include "device.h"
#include "../parameters/parameters.h"
+#include <sys/time.h>
struct frequency;