selftests: Add missing #include directives
authorBen Hutchings <ben@decadent.org.uk>
Mon, 2 Nov 2015 12:21:46 +0000 (12:21 +0000)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 3 Nov 2015 23:53:53 +0000 (16:53 -0700)
commitc1ee48315d9f0be2c11c61d388a3938c2d4b010a
treeeee6df90fcd7621618563ab47e28b5c38a28372e
parentfd88d16c58c2ad689a68d6790c789e7d5be3fc5b
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>
tools/testing/selftests/memfd/memfd_test.c
tools/testing/selftests/mqueue/mq_open_tests.c
tools/testing/selftests/mqueue/mq_perf_tests.c
tools/testing/selftests/timers/nanosleep.c