diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2014-02-08 11:41:07 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-02-17 23:10:02 +0100 |
commit | 91f32b0c92fb18a403e48d3c8ffc14422a0c1ca5 (patch) | |
tree | c1777d672e179300205f792840bc9a2ada3d8670 /tests/i440fx-test.c | |
parent | e41b509d68afb1f329c8558b6edfe2fcbac88e66 (diff) |
qtest: Include system headers before user headers
It is dangerous to include user headers before system headers since user
macros can affect system headers.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'tests/i440fx-test.c')
-rw-r--r-- | tests/i440fx-test.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/i440fx-test.c b/tests/i440fx-test.c index fa3e3d6b87..e398b83018 100644 --- a/tests/i440fx-test.c +++ b/tests/i440fx-test.c @@ -12,12 +12,6 @@ * See the COPYING file in the top-level directory. */ -#include "libqos/pci.h" -#include "libqos/pci-pc.h" -#include "libqtest.h" - -#include "hw/pci/pci_regs.h" - #include <glib.h> #include <string.h> #include <stdio.h> @@ -26,6 +20,11 @@ #include <sys/mman.h> #include <stdlib.h> +#include "libqtest.h" +#include "libqos/pci.h" +#include "libqos/pci-pc.h" +#include "hw/pci/pci_regs.h" + #define BROKEN 1 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) |