From 07b096b41873bd64d01c7d59e43066793ef0e95c Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 8 Feb 2016 18:37:01 +0000 Subject: [PATCH] tests/i440fx-test: Don't define ARRAY_SIZE locally Don't define ARRAY_SIZE locally; instead include osdep.h for it. Signed-off-by: Peter Maydell Reviewed-by: Eric Blake Reviewed-by: Eric Blake --- tests/i440fx-test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/i440fx-test.c b/tests/i440fx-test.c index 7fa170990f..0665caf7f5 100644 --- a/tests/i440fx-test.c +++ b/tests/i440fx-test.c @@ -12,6 +12,7 @@ * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include #include #include @@ -27,8 +28,6 @@ #define BROKEN 1 -#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) - typedef struct TestData { int num_cpus; -- 2.11.0