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é <vincent.ste...@arm.com>
---
 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),
-- 
2.29.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144854): 
https://lists.openembedded.org/g/openembedded-core/message/144854
Mute This Topic: https://lists.openembedded.org/mt/78393178/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to