Skip to content

Commit

Permalink
Fix build for old glibc that lack some syscalls
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
  • Loading branch information
elboulangero committed Mar 30, 2018
1 parent ce2c82d commit bb10939
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/syscall_format.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ main(int argc, char **argv)
madvise(p1, 1234, MADV_DONTNEED);
madvise(NULL, 0, MADV_SEQUENTIAL);
mlock(p0, 0x3000);
#ifdef SYS_mlock2
syscall(SYS_mlock2, p0, 0x3000, 0);
#endif
munlock(p0, 0x3000);
mlockall(MCL_CURRENT);
mlockall(MCL_FUTURE);
Expand Down Expand Up @@ -712,7 +714,9 @@ main(int argc, char **argv)
syscall(SYS_mq_getsetattr, 1, p0, p1);

syscall(SYS_kexec_load, 1, 2, p0, KEXEC_PRESERVE_CONTEXT);
#ifdef SYS_kexec_file_load
syscall(SYS_kexec_file_load, 1, 2, 3, input[0], KEXEC_PRESERVE_CONTEXT);
#endif

syscall(SYS_waitid, 1, 2, p0, 4, p1);

Expand Down

0 comments on commit bb10939

Please sign in to comment.