diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-24 10:29:29 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-24 10:29:29 +0000 |
commit | 7c2a9d0997cf313d246843eb3a10dfbab9bead8e (patch) | |
tree | 2c7e742ddb04b8b108bb4e2d344bc2d995cd6d0d /fpu | |
parent | 9ca313aa0824f2d350a7a6c9b1ef6c47e0408f1d (diff) | |
download | qemu-7c2a9d0997cf313d246843eb3a10dfbab9bead8e.zip qemu-7c2a9d0997cf313d246843eb3a10dfbab9bead8e.tar.gz qemu-7c2a9d0997cf313d246843eb3a10dfbab9bead8e.tar.bz2 |
Fix math warnings on OpenBSD -current
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5077 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'fpu')
-rw-r--r-- | fpu/softfloat-native.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fpu/softfloat-native.h b/fpu/softfloat-native.h index 5994cd4..379d49d 100644 --- a/fpu/softfloat-native.h +++ b/fpu/softfloat-native.h @@ -8,6 +8,11 @@ #include <fenv.h> #endif +#ifdef __OpenBSD__ +/* Get OpenBSD version number */ +#include <sys/param.h> +#endif + /* * Define some C99-7.12.3 classification macros and * some C99-.12.4 for Solaris systems OS less than 10, @@ -17,7 +22,7 @@ */ #if defined(HOST_SOLARIS) && (( HOST_SOLARIS <= 9 ) || ((HOST_SOLARIS >= 10) \ && (__GNUC__ <= 4))) \ - || defined(__OpenBSD__) + || (defined(__OpenBSD__) && (OpenBSD < 200811)) /* * C99 7.12.3 classification macros * and |