]> 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)
committerSteve Sakoman <steve@sakoman.com>
Fri, 1 May 2020 20:12:13 +0000 (10:12 -1000)
commit9fff03afb8e67b360042e80fda8213a67472b9ec
tree3e81e1ccb1dc035e4aa89247bf68e094957831ac
parented7ce0d5e9009d80a79c39bb3d0d45de6e7721c0
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>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/pseudo/files/seccomp.patch