Commit 7c2a9d0997cf313d246843eb3a10dfbab9bead8e
1 parent
9ca313aa
Fix math warnings on OpenBSD -current
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5077 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
6 additions
and
1 deletions
fpu/softfloat-native.h
... | ... | @@ -8,6 +8,11 @@ |
8 | 8 | #include <fenv.h> |
9 | 9 | #endif |
10 | 10 | |
11 | +#ifdef __OpenBSD__ | |
12 | +/* Get OpenBSD version number */ | |
13 | +#include <sys/param.h> | |
14 | +#endif | |
15 | + | |
11 | 16 | /* |
12 | 17 | * Define some C99-7.12.3 classification macros and |
13 | 18 | * some C99-.12.4 for Solaris systems OS less than 10, |
... | ... | @@ -17,7 +22,7 @@ |
17 | 22 | */ |
18 | 23 | #if defined(HOST_SOLARIS) && (( HOST_SOLARIS <= 9 ) || ((HOST_SOLARIS >= 10) \ |
19 | 24 | && (__GNUC__ <= 4))) \ |
20 | - || defined(__OpenBSD__) | |
25 | + || (defined(__OpenBSD__) && (OpenBSD < 200811)) | |
21 | 26 | /* |
22 | 27 | * C99 7.12.3 classification macros |
23 | 28 | * and | ... | ... |