summaryrefslogtreecommitdiff
path: root/tests/test-i386.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-03-04 22:50:52 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-03-04 22:50:52 +0000
commit73bdea1951ce3894826907a6ce0cf68ad5e4dd0c (patch)
tree21a0e8f77cdbcb31333e7798aefb3b40832d4719 /tests/test-i386.c
parent00af2b26809d9cfb20af348ea7df255780348dd2 (diff)
downloadqemu-73bdea1951ce3894826907a6ce0cf68ad5e4dd0c.zip
2.6 kernel compile fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@654 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tests/test-i386.c')
-rw-r--r--tests/test-i386.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-i386.c b/tests/test-i386.c
index 650a5a96ab..ce1213a7d2 100644
--- a/tests/test-i386.c
+++ b/tests/test-i386.c
@@ -884,9 +884,14 @@ void test_xchg(void)
#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
+
uint8_t seg_data1[4096];
uint8_t seg_data2[4096];