diff options
author | Jacob Kroon <jacob.kroon@gmail.com> | 2020-05-08 16:26:39 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-12 15:20:42 +0100 |
commit | b4e1ce1b93b08c77047508f27915073db6315a8e (patch) | |
tree | 0493553a6369a2ec8276f397de1cc089eb51cdbe /meta/recipes-devtools | |
parent | fbb08a1561a6cc21bd01b78a101552fb9ff936c8 (diff) | |
download | poky-b4e1ce1b93b08c77047508f27915073db6315a8e.tar.gz |
pseudo: Fix enum typedef
'pseudo_access_t' is a type, so use typedef.
Fixes building pseudo with gcc 10 where -fno-common is the default.
(From OE-Core rev: a7d519f742aadc9110c2401f359254210a784f6b)
Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/pseudo/files/0001-pseudo_ipc.h-Fix-enum-typedef.patch | 31 | ||||
-rw-r--r-- | meta/recipes-devtools/pseudo/pseudo_git.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pseudo/files/0001-pseudo_ipc.h-Fix-enum-typedef.patch b/meta/recipes-devtools/pseudo/files/0001-pseudo_ipc.h-Fix-enum-typedef.patch new file mode 100644 index 0000000000..33d4ef3b2f --- /dev/null +++ b/meta/recipes-devtools/pseudo/files/0001-pseudo_ipc.h-Fix-enum-typedef.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From a491aececfedf7313d29b80d626e0964fb533548 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jacob Kroon <jacob.kroon@gmail.com> | ||
3 | Date: Sun, 3 May 2020 06:24:03 +0200 | ||
4 | Subject: [PATCH] pseudo_ipc.h: Fix enum typedef | ||
5 | |||
6 | 'pseudo_access_t' is a type, so use typedef. | ||
7 | |||
8 | Fixes building pseudo with gcc 10 where -fno-common is the default. | ||
9 | |||
10 | Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> | ||
11 | Upstream-Status: Submitted [https://lists.openembedded.org/g/openembedded-core/message/137758] | ||
12 | --- | ||
13 | pseudo_ipc.h | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/pseudo_ipc.h b/pseudo_ipc.h | ||
17 | index caeae5c..d945257 100644 | ||
18 | --- a/pseudo_ipc.h | ||
19 | +++ b/pseudo_ipc.h | ||
20 | @@ -29,7 +29,7 @@ typedef struct { | ||
21 | char path[]; | ||
22 | } pseudo_msg_t; | ||
23 | |||
24 | -enum { | ||
25 | +typedef enum { | ||
26 | PSA_EXEC = 1, | ||
27 | PSA_WRITE = (PSA_EXEC << 1), | ||
28 | PSA_READ = (PSA_WRITE << 1), | ||
29 | -- | ||
30 | 2.26.2 | ||
31 | |||
diff --git a/meta/recipes-devtools/pseudo/pseudo_git.bb b/meta/recipes-devtools/pseudo/pseudo_git.bb index a3049c5e6c..324ae9071f 100644 --- a/meta/recipes-devtools/pseudo/pseudo_git.bb +++ b/meta/recipes-devtools/pseudo/pseudo_git.bb | |||
@@ -12,6 +12,7 @@ SRC_URI = "git://git.yoctoproject.org/pseudo \ | |||
12 | file://0006-xattr-adjust-for-attr-2.4.48-release.patch \ | 12 | file://0006-xattr-adjust-for-attr-2.4.48-release.patch \ |
13 | file://seccomp.patch \ | 13 | file://seccomp.patch \ |
14 | file://0001-pseudo-On-a-DB-fixup-remove-files-that-do-not-exist-.patch \ | 14 | file://0001-pseudo-On-a-DB-fixup-remove-files-that-do-not-exist-.patch \ |
15 | file://0001-pseudo_ipc.h-Fix-enum-typedef.patch \ | ||
15 | " | 16 | " |
16 | 17 | ||
17 | SRCREV = "060058bb29f70b244e685b3c704eb0641b736f73" | 18 | SRCREV = "060058bb29f70b244e685b3c704eb0641b736f73" |