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

Colin King colin.king at canonical.com
Fri Sep 22 09:18:21 UTC 2017


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>
-- 
2.14.1




More information about the fwts-devel mailing list