summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTopi Miettinen <topimiettinen@users.noreply.github.com>2017-11-13 21:00:03 +0000
committerSven Eden <yamakuzure@gmx.net>2017-11-13 21:00:03 +0000
commit0f48edebdb679406a22f1d4ce81be64f0bb32c5b (patch)
tree777a809eb7d6416bbce043cb61b3c7f53c91a527 /src
parentec9a1d982ba4327a31158b78ceea49e582ff493d (diff)
basic: remove redundant check (#7320)
The check is redundant as the whole block is only evaluated if __IGNORE_pkey_mprotect is not defined. Change to #else.
Diffstat (limited to 'src')
-rw-r--r--src/basic/missing_syscall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
index 424dbff1a..54c174744 100644
--- a/src/basic/missing_syscall.h
+++ b/src/basic/missing_syscall.h
@@ -375,7 +375,7 @@ static inline int bpf(int cmd, union bpf_attr *attr, size_t size) {
# if _MIPS_SIM == _MIPS_SIM_ABI64
# define __NR_pkey_mprotect 5323
# endif
-# elif ! defined(__IGNORE_pkey_mprotect)
+# else
# warning "__NR_pkey_mprotect not defined for your architecture"
# endif
# endif