[Skiboot] [PATCH 08/11] print-stb-container: Fix build on centos7

Stewart Smith stewart at linux.vnet.ibm.com
Thu Dec 22 17:20:33 AEDT 2016


Because of ordering of include files, we got:

/usr/include/bits/stat.h:106:31: error: expected identifier or '(' before '[' token
     __syscall_slong_t __unused[3];

Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 libstb/test/print-stb-container.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libstb/test/print-stb-container.c b/libstb/test/print-stb-container.c
index 8ce623d..92a3ab5 100644
--- a/libstb/test/print-stb-container.c
+++ b/libstb/test/print-stb-container.c
@@ -18,8 +18,6 @@
 
 #include <stdbool.h>
 #include <types.h>
-#include "../container.h"
-#include "../container.c"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -32,6 +30,9 @@
 #include <fcntl.h>
 #include <assert.h>
 
+#include "../container.h"
+#include "../container.c"
+
 static void display_version_raw(const ROM_version_raw v)
 {
 	printf("ver_alg:\n");
-- 
2.9.3



More information about the Skiboot mailing list