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

Colin King colin.king at canonical.com
Fri Sep 22 09:01:35 UTC 2017


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

Older versions of gcc/glibc require this header to be explicitly included.

Fixes: c576305f7b29 ("fwts_log: make line_number to a uint32_t type")
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/lib/src/fwts_log_plaintext.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/src/fwts_log_plaintext.c b/src/lib/src/fwts_log_plaintext.c
index 0cde841f..5e578823 100644
--- a/src/lib/src/fwts_log_plaintext.c
+++ b/src/lib/src/fwts_log_plaintext.c
@@ -22,6 +22,7 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdint.h>
+#include <intypes.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/ioctl.h>
-- 
2.14.1




More information about the fwts-devel mailing list