]> code.ossystems Code Review - openembedded-core.git/commit
gpgme: Define __error_t_defined on musl
authorKhem Raj <raj.khem@gmail.com>
Wed, 13 Jan 2016 19:40:52 +0000 (19:40 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Jan 2016 23:42:54 +0000 (23:42 +0000)
commit29e1edcba39a21057ba5862eef4e79c177e7ef62
treef8bf00125dc8f97dfa5437e852265a5ff57aad3c
parentc360290f22abfe9e37ca2fc0766b5a08a3276f6b
gpgme: Define __error_t_defined on musl

Configure looks for error_t in errno.h and musl does not define error_t
if its not defined then configure emits a definition to be used, now we
also use standalone argp implementation from glibc on musl based systems
which defines this in argp.h as well so now we have it defined twice
and errors like

|
/a/builder/mnt/build-oe/tmp-musl/sysroots/raspberrypi2/usr/include/argp.h:40:13:
error: cannot combine with previous 'int' declaration specifier
| typedef int error_t;
|             ^
| ../config.h:257:17: note: expanded from macro 'error_t'
| #define error_t int
|                 ^
| 1 error generated.

are seen. argp.h definition is conditional on __error_t_defined which is
true here so lets define it on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-support/gpgme/gpgme_1.6.0.bb