On Fri, 2020-11-20 at 17:38 +0100, Vincent Stehlé wrote: > Add a missing typedef in front of the pseudo_access_t definition. > Otherwise > pseudo_access_t ends up being a global enum, defined each time > pseudo_ipc.h > is included. > > This fixes the following link time error with gcc 10: > > multiple definition of `pseudo_access_t' > > Signed-off-by: Vincent Stehlé <[email protected]> > --- > pseudo_ipc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/pseudo_ipc.h b/pseudo_ipc.h > index caeae5c..d945257 100644 > --- a/pseudo_ipc.h > +++ b/pseudo_ipc.h > @@ -29,7 +29,7 @@ typedef struct { > char path[]; > } pseudo_msg_t; > > -enum { > +typedef enum { > PSA_EXEC = 1, > PSA_WRITE = (PSA_EXEC << 1), > PSA_READ = (PSA_WRITE << 1),
I think we already have this in the pseudo branch we use for OE? http://git.yoctoproject.org/cgit.cgi/pseudo/commit/pseudo_ipc.h?h=oe-core&id=a44361b8d3fbf5fc40cd87b599caeb380454efbe Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#144857): https://lists.openembedded.org/g/openembedded-core/message/144857 Mute This Topic: https://lists.openembedded.org/mt/78393178/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
