diff options
author | nox <nox@FreeBSD.org> | 2013-09-27 04:09:57 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2013-09-27 04:09:57 +0800 |
commit | 21f9e7f559b3bee04b8363c72e36bc0d788bbbb6 (patch) | |
tree | b5ff3bb99517db85d58aeb1384b8c8fe85e62a6d /emulators/kqemu-kmod-devel | |
parent | f7c516b20092b23c5cbc84e581b319f11804ed3e (diff) | |
download | freebsd-ports-gnome-21f9e7f559b3bee04b8363c72e36bc0d788bbbb6.tar.gz freebsd-ports-gnome-21f9e7f559b3bee04b8363c72e36bc0d788bbbb6.tar.zst freebsd-ports-gnome-21f9e7f559b3bee04b8363c72e36bc0d788bbbb6.zip |
(Attempt to) fix build on i386 with gcc46 and -Werror.
Submitted by: beefy1 via pkg-fallout
Diffstat (limited to 'emulators/kqemu-kmod-devel')
-rw-r--r-- | emulators/kqemu-kmod-devel/files/patch-common-interp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/emulators/kqemu-kmod-devel/files/patch-common-interp.c b/emulators/kqemu-kmod-devel/files/patch-common-interp.c new file mode 100644 index 000000000000..56ef92627e8c --- /dev/null +++ b/emulators/kqemu-kmod-devel/files/patch-common-interp.c @@ -0,0 +1,15 @@ +--- common/interp.c.orig ++++ common/interp.c +@@ -1870,11 +1870,11 @@ static void helper_wrmsr(struct kqemu_st + { + #ifdef __x86_64__ + struct kqemu_cpu_state *env = &s->cpu_state; +-#endif + uint64_t val; + + val = ((uint32_t)s->regs1.eax) | + ((uint64_t)((uint32_t)s->regs1.edx) << 32); ++#endif + + switch((uint32_t)s->regs1.ecx) { + #ifdef __x86_64__ |