Skip to content

Commit

Permalink
hw/boards: make it safe to include for linux-user
Browse files Browse the repository at this point in the history
Make it safe to include hw/boards.h in exec.c
for linux-user configurations.
We don't need any of its contents though.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
mstsirkin committed Mar 11, 2015
1 parent 6cabe7f commit 66bd566
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/hw/boards.h
Expand Up @@ -3,6 +3,8 @@
#ifndef HW_BOARDS_H
#define HW_BOARDS_H

#if !defined(CONFIG_USER_ONLY)

#include "qemu/typedefs.h"
#include "sysemu/blockdev.h"
#include "sysemu/accel.h"
Expand Down Expand Up @@ -154,3 +156,5 @@ struct MachineState {
};

#endif

#endif

0 comments on commit 66bd566

Please sign in to comment.