Skip to content
Commit 37e81a01 authored by Hans-Werner Hilse's avatar Hans-Werner Hilse Committed by Richard Weinberger
Browse files

um: Do not rely on libc to provide modify_ldt()



modify_ldt() was declared as an external symbol. Despite the man
page for this syscall telling that there is no wrapper in glibc,
since version 2.1 there actually is, so linking to the glibc
works.

Since modify_ldt() is not a POSIX interface, other libc
implementations do not always provide a wrapper function.
Even glibc headers do not provide a corresponding declaration.

So go the recommended way to call this using syscall().

Signed-off-by: default avatarHans-Werner Hilse <hwhilse@gmail.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 0b5aedfe
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