From 20aa6c0f4cbe6fdaba8938536a7b80270cfe7203 Mon Sep 17 00:00:00 2001 From: Pavel Chupin Date: Thu, 25 Oct 2012 12:17:05 +0400 Subject: [PATCH] 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 --- linker/dlfcn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linker/dlfcn.cpp b/linker/dlfcn.cpp index 900803cb5..c77b9a38b 100644 --- a/linker/dlfcn.cpp +++ b/linker/dlfcn.cpp @@ -207,7 +207,7 @@ static unsigned gLibDlChains[7] = { 0, 2, 3, 4, 5, 6, 0 }; // 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,