[PATCH 2/2] lib: fwts_battery: fix build issues with older toolchains
Colin King
colin.king at canonical.com
Thu Nov 9 12:27:24 UTC 2017
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,
--
2.14.1
More information about the fwts-devel
mailing list