aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/memfd
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2015-11-02 12:21:46 +0000
committerShuah Khan <shuahkh@osg.samsung.com>2015-11-03 16:53:53 -0700
commitc1ee48315d9f0be2c11c61d388a3938c2d4b010a (patch)
treeeee6df90fcd7621618563ab47e28b5c38a28372e /tools/testing/selftests/memfd
parentselftests/seccomp: Be more precise with syscall arguments. (diff)
downloadwireguard-linux-c1ee48315d9f0be2c11c61d388a3938c2d4b010a.tar.xz
wireguard-linux-c1ee48315d9f0be2c11c61d388a3938c2d4b010a.zip
selftests: Add missing #include directives
Several C programs fail to include the headers declaring all the functions they call, resulting in warnings or errors. After this, memfd_test.c is still missing some function declarations but can't easily get them because of a conflict between <linux/fcntl.h> and <sys/fcntl.h>. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/memfd')
-rw-r--r--tools/testing/selftests/memfd/memfd_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/memfd/memfd_test.c b/tools/testing/selftests/memfd/memfd_test.c
index aa5d3ebbd760..26546892cd54 100644
--- a/tools/testing/selftests/memfd/memfd_test.c
+++ b/tools/testing/selftests/memfd/memfd_test.c
@@ -15,6 +15,7 @@
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/syscall.h>
+#include <sys/wait.h>
#include <unistd.h>
#define MFD_DEF_SIZE 8192