diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-03-04 22:50:52 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-03-04 22:50:52 +0000 |
commit | 73bdea1951ce3894826907a6ce0cf68ad5e4dd0c (patch) | |
tree | 21a0e8f77cdbcb31333e7798aefb3b40832d4719 /target-i386 | |
parent | 00af2b26809d9cfb20af348ea7df255780348dd2 (diff) |
2.6 kernel compile fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@654 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/helper2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-i386/helper2.c b/target-i386/helper2.c index c98262c2d3..c9c9d7e36e 100644 --- a/target-i386/helper2.c +++ b/target-i386/helper2.c @@ -34,9 +34,14 @@ #ifdef USE_CODE_COPY #include <asm/ldt.h> #include <linux/unistd.h> +#include <linux/version.h> _syscall3(int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount) + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 66) +#define modify_ldt_ldt_s user_desc #endif +#endif /* USE_CODE_COPY */ CPUX86State *cpu_x86_init(void) { |