summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loader/ldt_keeper.c5
1 files changed, 5 insertions, 0 deletions
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 <asm/unistd.h>
#include <asm/ldt.h>
+// 2.5.xx+ calls this user_desc:
+#include <linux/version.h>
+#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" {