sngrep: fix error if gnutls and openssl are both enabled
[buildroot-gz.git] / package / powertop / 0003-add-missing-sys-time.h-header.patch
blob7156e4256ad8388742e3a3cbfe5a846ef6f500a0
1 From 283cab667a9ac3ae3a675b5e5d1a42191188699f Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Sat, 8 Aug 2015 18:24:48 +0200
4 Subject: [PATCH] add missing sys/time.h header
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 struct timeval is defined in sys/time.h with a musl toolchain.
11 Fixes:
12 In file included from devices/devfreq.cpp:35:0:
13 devices/devfreq.h:35:18: error: field ‘stamp_before’ has incomplete type ‘timeval’
14 struct timeval stamp_before, stamp_after;
16 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
17 ---
18 src/devices/devfreq.h | 1 +
19 1 file changed, 1 insertion(+)
21 diff --git a/src/devices/devfreq.h b/src/devices/devfreq.h
22 index 16a60fb..4a8983b 100644
23 --- a/src/devices/devfreq.h
24 +++ b/src/devices/devfreq.h
25 @@ -27,6 +27,7 @@
27 #include "device.h"
28 #include "../parameters/parameters.h"
29 +#include <sys/time.h>
31 struct frequency;
33 --
34 2.4.3