[CRIU] [PATCH] vdso: asm -- Include protobuf/vma.pb-c.h

Cyrill Gorcunov gorcunov at openvz.org
Mon May 27 03:03:21 EDT 2013


rhel6 compiler is not happy about preliminary
declaration of VmaEntry type yielding error on
building attempt, thus include protobuf header.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 arch/arm/include/asm/vdso.h | 5 ++---
 arch/x86/include/asm/vdso.h | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/arch/arm/include/asm/vdso.h b/arch/arm/include/asm/vdso.h
index f9b0f6d..6ffdd74 100644
--- a/arch/arm/include/asm/vdso.h
+++ b/arch/arm/include/asm/vdso.h
@@ -3,10 +3,9 @@
 
 #include <sys/types.h>
 
-struct vdso_symtable;
+#include "protobuf/vma.pb-c.h"
 
-struct  _VmaEntry;
-typedef struct _VmaEntry VmaEntry;
+struct vdso_symtable;
 
 extern int vdso_redirect_calls(void *base_to, void *base_from, struct vdso_symtable *to, struct vdso_symtable *from);
 extern int vdso_fill_symtable(char *mem, size_t size,struct vdso_symtable *t);
diff --git a/arch/x86/include/asm/vdso.h b/arch/x86/include/asm/vdso.h
index f9b0f6d..6ffdd74 100644
--- a/arch/x86/include/asm/vdso.h
+++ b/arch/x86/include/asm/vdso.h
@@ -3,10 +3,9 @@
 
 #include <sys/types.h>
 
-struct vdso_symtable;
+#include "protobuf/vma.pb-c.h"
 
-struct  _VmaEntry;
-typedef struct _VmaEntry VmaEntry;
+struct vdso_symtable;
 
 extern int vdso_redirect_calls(void *base_to, void *base_from, struct vdso_symtable *to, struct vdso_symtable *from);
 extern int vdso_fill_symtable(char *mem, size_t size,struct vdso_symtable *t);
-- 
1.8.1.4



More information about the CRIU mailing list