Workaround g++ 4.7 compfail
error: C99 designator 'name' outside aggregate initializer
G++ 4.7+ can't handle some of C99 designated initializers.
Most likely it's just not implemented yet. Other possible workarounds is
to compile this as C not C++ or define name as char* instead of char[SIZE].
Appeared after this change https://android-review.googlesource.com/#/c/44470
Change-Id: Ib28157848ce759b8bb5dbb2ac0d9a768fa4e5107
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
diff --git a/linker/dlfcn.cpp b/linker/dlfcn.cpp
index 900803c..c77b9a3 100644
--- a/linker/dlfcn.cpp
+++ b/linker/dlfcn.cpp
@@ -207,7 +207,7 @@
// This is used by the dynamic linker. Every process gets these symbols for free.
soinfo libdl_info = {
- name: "libdl.so",
+ "libdl.so",
phdr: 0, phnum: 0,
entry: 0, base: 0, size: 0,