diff options
Diffstat (limited to 'emulators/qemu/patches/patch-ab')
-rw-r--r-- | emulators/qemu/patches/patch-ab | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/emulators/qemu/patches/patch-ab b/emulators/qemu/patches/patch-ab new file mode 100644 index 00000000000..f09e385ff7a --- /dev/null +++ b/emulators/qemu/patches/patch-ab @@ -0,0 +1,17 @@ +$NetBSD: patch-ab,v 1.3 2005/03/02 23:22:41 hubertf Exp $ + +Source: http://lists.gnu.org/archive/html/qemu-devel/2004-09/msg00271.html + +--- target-i386/exec.h.orig 2004-11-14 21:51:33.000000000 +0100 ++++ target-i386/exec.h +@@ -315,8 +315,8 @@ static inline void stfl(void *ptr, float + extern int lrint(CPU86_LDouble x); + extern int64_t llrint(CPU86_LDouble x); + #else +-#define lrint(d) ((int)rint(d)) +-#define llrint(d) ((int)rint(d)) ++#define lrint(d) ((long)rint(d)) ++#define llrint(d) ((long long)rint(d)) + #endif + extern CPU86_LDouble fabs(CPU86_LDouble x); + extern CPU86_LDouble sin(CPU86_LDouble x); |