[PATCH] opal: fix build error on Ubuntu 12.04 i386 with gcc 4.6.3

Colin King colin.king at canonical.com
Wed Jun 14 06:36:46 UTC 2017


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

For some reason we need to also include inttypes.h for 32 bit
builds with gcc 4.6.3 on Ubuntu 12.04 to build correctly.

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/opal/reserv_mem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/opal/reserv_mem.c b/src/opal/reserv_mem.c
index 4199448c..60f8c212 100644
--- a/src/opal/reserv_mem.c
+++ b/src/opal/reserv_mem.c
@@ -21,6 +21,7 @@
 #include <fcntl.h>
 #include <stdlib.h>
 #include <sys/ioctl.h>
+#include <inttypes.h>
 
 #include "fwts.h"
 
-- 
2.11.0




More information about the fwts-devel mailing list