From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSqvj-0006uu-EX for qemu-devel@nongnu.org; Mon, 08 Feb 2016 13:53:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSqvi-0002cn-Hm for qemu-devel@nongnu.org; Mon, 08 Feb 2016 13:52:59 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:57232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSqvi-0002cV-Bg for qemu-devel@nongnu.org; Mon, 08 Feb 2016 13:52:58 -0500 From: Peter Maydell Date: Mon, 8 Feb 2016 18:49:16 +0000 Message-Id: <1454957357-22094-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1454957357-22094-1-git-send-email-peter.maydell@linaro.org> References: <1454957357-22094-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 1/2] tests/i440fx-test: Don't define ARRAY_SIZE locally List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster , patches@linaro.org Don't define ARRAY_SIZE locally; instead include osdep.h for it. Signed-off-by: Peter Maydell --- 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 7fa1709..0665caf 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; -- 1.9.1