Index: block.c =================================================================== --- block.c (revision 5805) +++ block.c (working copy) @@ -21,6 +21,11 @@ * 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 +34,6 @@ #include #include #include -#include #include #endif