ACK: [PATCH 2/2] lib: fwts_battery: fix build issues with older toolchains

Alex Hung alex.hung at canonical.com
Mon Nov 13 03:00:48 UTC 2017


On 2017-11-09 08:27 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Explicitly include <stdint.h> and <inttypes.h> to avoid build errors
> on older toolchains. This supports distros that aren't so up to date
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   src/lib/src/fwts_battery.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/src/lib/src/fwts_battery.c b/src/lib/src/fwts_battery.c
> index c59fe461..8a4ab4f7 100644
> --- a/src/lib/src/fwts_battery.c
> +++ b/src/lib/src/fwts_battery.c
> @@ -27,6 +27,7 @@
>   #include <string.h>
>   #include <limits.h>
>   #include <dirent.h>
> +#include <inttypes.h>
>   
>   static inline bool fwts_battery_match(
>   	const uint32_t index,
> 

Acked-by: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list