From e311248b6442827820bfc7340ea1401caee3a0f1 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 21 Oct 2010 10:18:38 +0200 Subject: [PATCH] make runcom compile on recent distributions Signed-off-by: Paolo Bonzini Signed-off-by: Blue Swirl --- tests/runcom.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/runcom.c b/tests/runcom.c index 6380566635..d60342bfc6 100644 --- a/tests/runcom.c +++ b/tests/runcom.c @@ -13,16 +13,13 @@ #include #include +extern int vm86 (unsigned long int subfunction, + struct vm86plus_struct *info); + +#define VIF_MASK 0x00080000 + //#define SIGTEST -#undef __syscall_return -#define __syscall_return(type, res) \ -do { \ - return (type) (res); \ -} while (0) - -_syscall2(int, vm86, int, func, struct vm86plus_struct *, v86) - #define COM_BASE_ADDR 0x10100 static void usage(void)