From patchwork Sun May 14 05:18:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kamil Rytarowski X-Patchwork-Id: 9725543 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CA541601E7 for ; Sun, 14 May 2017 05:27:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0571283F5 for ; Sun, 14 May 2017 05:27:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2DF82891C; Sun, 14 May 2017 05:27:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7EF34283F5 for ; Sun, 14 May 2017 05:27:06 +0000 (UTC) Received: from localhost ([::1]:59779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9m3d-0007sO-DZ for patchwork-qemu-devel@patchwork.kernel.org; Sun, 14 May 2017 01:27:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9m34-0007sI-VG for qemu-devel@nongnu.org; Sun, 14 May 2017 01:26:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9m31-0001Xi-Q4 for qemu-devel@nongnu.org; Sun, 14 May 2017 01:26:30 -0400 Received: from mout.gmx.net ([212.227.15.15]:50769) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9m31-0001Wa-F6 for qemu-devel@nongnu.org; Sun, 14 May 2017 01:26:27 -0400 Received: from localhost.localdomain ([185.58.161.191]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MSuMn-1dYhPX2JHB-00Ro61; Sun, 14 May 2017 07:26:22 +0200 From: Kamil Rytarowski To: qemu-devel@nongnu.org Date: Sun, 14 May 2017 07:18:20 +0200 Message-Id: <20170514051820.15985-1-n54@gmx.com> X-Mailer: git-send-email 2.12.2 X-Provags-ID: V03:K0:AV3T8MBd1AtvI1n2G6TYtadaafdI8uaFYPjHli5V522mLl3552L 0/rJEf5kMgjrPs5SfgER+ssaTiT1RDQ9y+yTBX+Jvi+p+udrPbCOiaSVLs2i03Ppjb10BNj 3wSPK6R6iK8jOWenNF95rvu0TTDzrUFH3bGUIh6Uh1cOkMjyukx2pxIfi7m//imcv47Hio4 /ZsgsjFm7GKhDr+LHkM1w== X-UI-Out-Filterresults: notjunk:1; V01:K0:IyrAJ9CJtfQ=:kGqWGspH0+Ofv9GobrpisT 3uSuLpo3ub6CYsDrR2OoXOCk2o8NG5xEpKjeomdvrtIExrnrPne5WWVjZE4ovuBZQb1TvTkKf 7ShYlQarGQg1zCae7HcCqiAljsjn7YZuj8j7tTuwmgZKYyD2Htj76Rs2BPvrUl8D3fYtlYP17 15ITO9y3SqjwFpljf8sK+wZF2P4A3ddm8KHfKSeYB1qn8ZVRq8B29PD+4qMfEgpNAD6iPi6rR BwC2RUbxURfIGdbYGjMn5p0CYGzM2Cyit2jppJEapmMlCfr9u2UHQpN4mkXZ1479u2JUTiIq6 7t5uta8Lvp1XOFnbqqZpF0zgpWXontUyrqaIj56dYOw5mKlnzuYVxaXr5ZVEOcxlJyVLlqpoe yM7LfF4Mv7HH5FiPap2qhypsKE2npgM3l8iovfeCqdbNLsYIa8rfK+CG7Ido9iKOl5vidwBdl r/Po5X7TdbjFPyJEij6uOigYFTRPrMHvGK+jO104nN7OaMRgzJmRLjhEd1qkvI9mXiNjVcYhs 9TXGXehutiY4lq4v4Jmdvzadb7hMb11M1UvUab/mNKMH+q42cfKdw9jLDoXMv6aTDMSON0hYG Qr6DWM88FA4iBBVGCxlksUHwGqeYuUR5PCyuFPEJxlzqli/Jq7+vvurVNuTPhyPUuATf3mOb5 32Z1fPPaI7t7xlRGdLmIsTJ3V0nEEhlupqzKM05zTmxM/imjLQuk7nLFkwe6GdV1Ck+rHSDFr Ryt4UujifMnUyxwYT1ZUcqMT2lRCj2irzNcS9+bud7xso8qs8czDfiGwGrw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 Subject: [Qemu-devel] [PATCH] libvixl: Correct build failures on NetBSD X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Kamil Rytarowski , f4bug@amsat.org, claudio.fontana@gmail.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Ensure that C99 macros are defined regardless of the inclusion order of headers in vixl. This is required at least on NetBSD. The vixl/globals.h headers defines __STDC_CONSTANT_MACROS and must be included before other system headers. This file defines unconditionally the following macros, without altering the original sources: - __STDC_CONSTANT_MACROS - __STDC_LIMIT_MACROS - __STDC_FORMAT_MACROS Signed-off-by: Kamil Rytarowski Reviewed-by: Philippe Mathieu-Daudé --- disas/libvixl/Makefile.objs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disas/libvixl/Makefile.objs b/disas/libvixl/Makefile.objs index bbe7695fdb..860fb7f384 100644 --- a/disas/libvixl/Makefile.objs +++ b/disas/libvixl/Makefile.objs @@ -7,5 +7,8 @@ libvixl_OBJS = vixl/utils.o \ # The -Wno-sign-compare is needed only for gcc 4.6, which complains about # some signed-unsigned equality comparisons which later gcc versions do not. $(addprefix $(obj)/,$(libvixl_OBJS)): QEMU_CFLAGS := -I$(SRC_PATH)/disas/libvixl $(QEMU_CFLAGS) -Wno-sign-compare +# Ensure that C99 macros are defined regardless of the inclusion order of +# headers in vixl. This is required at least on NetBSD. +$(addprefix $(obj)/,$(libvixl_OBJS)): QEMU_CFLAGS += -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS common-obj-$(CONFIG_ARM_A64_DIS) += $(libvixl_OBJS)