]> code.ossystems Code Review - openembedded-core.git/commit
pseudo: add macro guard for seccomp
authorKai Kang <kai.kang@windriver.com>
Mon, 27 Apr 2020 06:04:16 +0000 (14:04 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Apr 2020 14:00:36 +0000 (15:00 +0100)
commitd1c4492cb9cf5a624bb996c94e9a1589133be014
treea436fc8d56c94bd69953ce3917be41cc68942b63
parent06ed491e30b47b8c5f89746e890519dd7de800fd
pseudo: add macro guard for seccomp

It fails to compile pseudo-native on centos 7:

| ports/linux/pseudo_wrappers.c: In function ‘prctl’:
| ports/linux/pseudo_wrappers.c:129:14: error: ‘SECCOMP_SET_MODE_FILTER’ undeclared (first use in this function)
|    if (cmd == SECCOMP_SET_MODE_FILTER) {
|               ^

Add macro guard for the definition to avoid the failure.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/pseudo/files/seccomp.patch