[PATCH] lib: fwts_battery: include inttypes.h for PRIu32 definition

Colin King colin.king at canonical.com
Fri Sep 22 08:50:23 UTC 2017


From: Colin Ian King <colin.king at canonical.com>

Older versions of gcc/glibc require this header 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/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 9e2ec28e..c59fe461 100644
--- a/src/lib/src/fwts_battery.c
+++ b/src/lib/src/fwts_battery.c
@@ -20,6 +20,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-- 
2.14.1




More information about the fwts-devel mailing list