changeset 8213:9d3e1476ecd0

2.5.47+ support patch by Sergey S. Stasyuk <stas@soft-systems.net>
author arpi
date Sat, 16 Nov 2002 09:38:23 +0000
parents 43a008c4b30f
children 5ddafb0cc18e
files loader/ldt_keeper.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/ldt_keeper.c	Sat Nov 16 08:53:24 2002 +0000
+++ b/loader/ldt_keeper.c	Sat Nov 16 09:38:23 2002 +0000
@@ -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" {