summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTom Hromatka <tom.hromatka@oracle.com>2021-11-01 12:27:31 -0600
committerTom Hromatka <tom.hromatka@oracle.com>2021-11-01 12:27:31 -0600
commit092c686e1bc4a64d3f876349573ca66144fa3b73 (patch)
tree35022825d562802ca01a0ef6139ef3e1f6f6bd1d /tests
parent3c2da115b5b35222afbc62f27779832d47a34786 (diff)
downloadlibseccomp-092c686e1bc4a64d3f876349573ca66144fa3b73.tar.gz
tests: Fix warning in 05-sim-long_jumps.c
Commit 3c2da115b5b35 "tests: improve 05-sim-long_jumps to work better across arch/ABIs" introduced the following warning. Let's fix it. 05-sim-long_jumps.c: In function ‘main’: 05-sim-long_jumps.c:68:25: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] 68 | free(syscall); Acked-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/05-sim-long_jumps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/05-sim-long_jumps.c b/tests/05-sim-long_jumps.c
index 24e5cf2..f8e9634 100644
--- a/tests/05-sim-long_jumps.c
+++ b/tests/05-sim-long_jumps.c
@@ -23,6 +23,7 @@
#include <errno.h>
#include <unistd.h>
#include <limits.h>
+#include <stdlib.h>
#include <seccomp.h>