diff --git a/loader/ldt_keeper.c b/loader/ldt_keeper.c index d71bac8ce2..a771868766 100644 --- a/loader/ldt_keeper.c +++ b/loader/ldt_keeper.c @@ -24,6 +24,11 @@ #ifdef __linux__ #include #include +// 2.5.xx+ calls this user_desc: +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,47) +#define modify_ldt_ldt_s user_desc +#endif /* prototype it here, so we won't depend on kernel headers */ #ifdef __cplusplus extern "C" {