Commit d40cdb1002366f16e415908b4e5a18ed02c7be6e
1 parent
70c14705
Fix BSD breakage from r6736
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6742 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
4 changed files
with
12 additions
and
0 deletions
net.c
| @@ -29,6 +29,9 @@ | @@ -29,6 +29,9 @@ | ||
| 29 | #include <sys/time.h> | 29 | #include <sys/time.h> |
| 30 | #include <zlib.h> | 30 | #include <zlib.h> |
| 31 | 31 | ||
| 32 | +/* Needed early for _BSD etc. */ | ||
| 33 | +#include "config-host.h" | ||
| 34 | + | ||
| 32 | #ifndef _WIN32 | 35 | #ifndef _WIN32 |
| 33 | #include <sys/times.h> | 36 | #include <sys/times.h> |
| 34 | #include <sys/wait.h> | 37 | #include <sys/wait.h> |
osdep.c
| @@ -33,6 +33,9 @@ | @@ -33,6 +33,9 @@ | ||
| 33 | #include <sys/statvfs.h> | 33 | #include <sys/statvfs.h> |
| 34 | #endif | 34 | #endif |
| 35 | 35 | ||
| 36 | +/* Needed early for _BSD etc. */ | ||
| 37 | +#include "config-host.h" | ||
| 38 | + | ||
| 36 | #ifdef _WIN32 | 39 | #ifdef _WIN32 |
| 37 | #define WIN32_LEAN_AND_MEAN | 40 | #define WIN32_LEAN_AND_MEAN |
| 38 | #include <windows.h> | 41 | #include <windows.h> |
savevm.c
| @@ -29,6 +29,9 @@ | @@ -29,6 +29,9 @@ | ||
| 29 | #include <sys/time.h> | 29 | #include <sys/time.h> |
| 30 | #include <zlib.h> | 30 | #include <zlib.h> |
| 31 | 31 | ||
| 32 | +/* Needed early for _BSD etc. */ | ||
| 33 | +#include "config-host.h" | ||
| 34 | + | ||
| 32 | #ifndef _WIN32 | 35 | #ifndef _WIN32 |
| 33 | #include <sys/times.h> | 36 | #include <sys/times.h> |
| 34 | #include <sys/wait.h> | 37 | #include <sys/wait.h> |
vl.c
| @@ -29,6 +29,9 @@ | @@ -29,6 +29,9 @@ | ||
| 29 | #include <sys/time.h> | 29 | #include <sys/time.h> |
| 30 | #include <zlib.h> | 30 | #include <zlib.h> |
| 31 | 31 | ||
| 32 | +/* Needed early for _BSD etc. */ | ||
| 33 | +#include "config-host.h" | ||
| 34 | + | ||
| 32 | #ifndef _WIN32 | 35 | #ifndef _WIN32 |
| 33 | #include <pwd.h> | 36 | #include <pwd.h> |
| 34 | #include <sys/times.h> | 37 | #include <sys/times.h> |