Commit 34d5b600 authored by Yu Liao's avatar Yu Liao Committed by Shuah Khan

selftests: vDSO: Explicitly include sched.h

The previous commit introduced the use of CLONE_NEWTIME without including
<sched.h> which contains its definition.

Add an explicit include of <sched.h> to ensure that CLONE_NEWTIME
is correctly defined before it is used.

Fixes: 2aec9003 ("selftests: vDSO: ensure vgetrandom works in a time namespace")
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 3953a1d1
......@@ -11,6 +11,7 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sched.h>
#include <signal.h>
#include <sys/auxv.h>
#include <sys/mman.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment