Skip to content

Commit 34d5b60

Browse files
yuliao0214shuahkh
authored andcommitted
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: 2aec900 ("selftests: vDSO: ensure vgetrandom works in a time namespace") Signed-off-by: Yu Liao <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 3953a1d commit 34d5b60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/vDSO/vdso_test_getrandom.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <string.h>
1212
#include <time.h>
1313
#include <unistd.h>
14+
#include <sched.h>
1415
#include <signal.h>
1516
#include <sys/auxv.h>
1617
#include <sys/mman.h>

0 commit comments

Comments
 (0)