diff --git a/block.c b/block.c index dadf3cd849f74c884f74f00004c54ee7883cd4e2..22aec97037f562ccc68e0c4c188b5f0e44aaa723 100644 --- a/block.c +++ b/block.c @@ -21,6 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "config-host.h" +#ifdef _BSD +/* include native header before sys-queue.h */ +#include +#endif + #include "qemu-common.h" #include "console.h" #include "block_int.h" @@ -29,7 +35,6 @@ #include #include #include -#include #include #endif