Musl library does not provide <sys/cdefs.h> (http://wiki.musl-libc.org/wiki/FAQ#Q:_I.27m_trying_to_compile_something_against_musl_and_I_get_error_messages_about_sys.2Fcdefs.h). I made a patch and update an ebuild to fix this.
Created attachment 431416 [details, diff] files/android-tools-5.1.1_p13-cdefs.patch
Created attachment 431418 [details] android-tools-5.1.1_p13.ebuild
(In reply to Petr Vaněk from comment #1) > Created attachment 431416 [details, diff] [details, diff] > files/android-tools-5.1.1_p13-cdefs.patch there's more to <sys/cdefs.h> than just __{BEGIN,END}_DECLS. Did you make sure this patch works on glibc too. If so I don't see why upstream shouldn't accept this as is.
I know, I saw the <sys/cdefs.h> content. Anyway, I tried the ebuild in a machine with glibc and it works well.
Since all uses of _*_DECLS are removed, their definitions for MINGW can also be removed.
Created attachment 431420 [details, diff] android-tools-5.1.1_p13-cdefs.patch mingw update Ok, you are right. Patch is updated.
(In reply to Petr Vaněk from comment #6) > Created attachment 431420 [details, diff] [details, diff] > android-tools-5.1.1_p13-cdefs.patch mingw update > > Ok, you are right. Patch is updated. okay i've been tracking this, but its in zac's court right now. Petr, if want it sooner, i'll put it on the overlay. just send a patch to the gentoo-musl@lists.gentoo.org list.
Thank you, I have it in my personal overlay. But if you think that it is good idea to have it in a musl overlay for other people usage, I'll send the patch to the gentoo-musl list.
Thanks, this is fixed in git: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11389cfde3266d32dc425e66c46a934c24647c8c