From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCJhh-0002q2-MA for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCJhg-0007LF-Bq for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:41 -0500 Received: from mail-yw0-x241.google.com ([2607:f8b0:4002:c05::241]:35281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCJhg-0007KR-5f for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:40 -0500 Received: by mail-yw0-x241.google.com with SMTP id b66so16737705ywh.2 for ; Wed, 30 Nov 2016 21:14:40 -0800 (PST) From: Pranith Kumar Date: Thu, 1 Dec 2016 00:14:20 -0500 Message-Id: <20161201051433.17168-7-bobby.prani@gmail.com> In-Reply-To: <20161201051433.17168-1-bobby.prani@gmail.com> References: <20161201051433.17168-1-bobby.prani@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 06/19] linux-test: fix build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alex.bennee@linaro.org Cc: qemu-devel@nongnu.org, rth@twiddle.net, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= From: Marc-André Lureau - QEMU_INCLUDES because it uses qemu/include - stdbool, for the bool usage - sys/resource.h for rusage and friends - qemu/compiler.h because it is no longer included in fprintf-fn.h (we may want to include it from qemu/cutils.h instead) Signed-off-by: Marc-André Lureau Signed-off-by: Pranith Kumar --- tests/tcg/Makefile | 2 +- tests/tcg/linux-test.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile index 89e3342..d1557c2 100644 --- a/tests/tcg/Makefile +++ b/tests/tcg/Makefile @@ -106,7 +106,7 @@ test-x86_64: test-i386.c \ # generic Linux and CPU test linux-test: linux-test.c - $(CC_I386) $(CFLAGS) $(LDFLAGS) -o $@ $< -lm + $(CC_I386) $(QEMU_INCLUDES) $(CFLAGS) $(LDFLAGS) -o $@ $< -lm # vm86 test runcom: runcom.c diff --git a/tests/tcg/linux-test.c b/tests/tcg/linux-test.c index b46a1c4..65fca30 100644 --- a/tests/tcg/linux-test.c +++ b/tests/tcg/linux-test.c @@ -17,6 +17,7 @@ * along with this program; if not, see . */ #define _GNU_SOURCE +#include #include #include #include @@ -31,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -39,6 +41,7 @@ #include #include #include +#include "qemu/compiler.h" #include "qemu/cutils.h" #define TESTPATH "/tmp/linux-test.tmp" -- 2.10.2