diff mbox

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

Message ID 20161222062036.8454-9-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith Dec. 22, 2016, 6:20 a.m. UTC
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@linux.vnet.ibm.com>
---
 libstb/test/print-stb-container.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

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");