ACK: [PATCH] acpi: battery: include stdint.h and inttypes.h

ivanhu ivan.hu at canonical.com
Mon Sep 25 08:52:15 UTC 2017



On 09/22/2017 05:18 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Older versions of gcc/glibc require these headers to be explicitly
> included.
> 
> Fixes: 171cf7f37728 ("lib: fwts_battery: clean up battery interfaces")
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   src/acpi/battery/battery.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/src/acpi/battery/battery.c b/src/acpi/battery/battery.c
> index d416384f..f3fe3409 100644
> --- a/src/acpi/battery/battery.c
> +++ b/src/acpi/battery/battery.c
> @@ -25,6 +25,8 @@
>   
>   #include <stdlib.h>
>   #include <stdio.h>
> +#include <stdint.h>
> +#include <inttypes.h>
>   #include <sys/types.h>
>   #include <sys/stat.h>
>   #include <unistd.h>
> 

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



More information about the fwts-devel mailing list