diff options
Diffstat (limited to 'tests/runcom.c')
-rw-r--r-- | tests/runcom.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runcom.c b/tests/runcom.c index 2d41341c57..4c83de0694 100644 --- a/tests/runcom.c +++ b/tests/runcom.c @@ -3,6 +3,7 @@ */ #include <stdlib.h> #include <stdio.h> +#include <string.h> #include <inttypes.h> #include <unistd.h> #include <fcntl.h> @@ -14,6 +15,12 @@ //#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 |