From patchwork Mon Jan 11 08:41:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 59448 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1974846lbb; Mon, 11 Jan 2016 00:48:56 -0800 (PST) X-Received: by 10.140.231.137 with SMTP id b131mr148213518qhc.63.1452502136558; Mon, 11 Jan 2016 00:48:56 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c92si63434848qgc.107.2016.01.11.00.48.56 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 11 Jan 2016 00:48:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:52544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIY9o-0003fS-7v for patch@linaro.org; Mon, 11 Jan 2016 03:48:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIY8B-000130-FY for qemu-devel@nongnu.org; Mon, 11 Jan 2016 03:47:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIY86-00027v-P9 for qemu-devel@nongnu.org; Mon, 11 Jan 2016 03:47:15 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:44601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIY86-00027P-Gt; Mon, 11 Jan 2016 03:47:10 -0500 Received: from tsrv.tls.msk.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 5317D403E7; Mon, 11 Jan 2016 11:47:08 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.tls.msk.ru (Postfix) with SMTP id DE8CBAE5; Mon, 11 Jan 2016 11:42:01 +0300 (MSK) Received: (nullmailer pid 28796 invoked by uid 1000); Mon, 11 Jan 2016 08:42:00 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Mon, 11 Jan 2016 11:41:54 +0300 Message-Id: <529490e5d664a20d5c4223070dd7c03a0e02b6bd.1452501578.git.mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Peter Maydell , Michael Tokarev Subject: [Qemu-devel] [PULL 15/19] osdep.h: Include glib-compat.h in osdep.h rather than qemu-common.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Peter Maydell Our use of glib is now pervasive across QEMU. Move the include of glib-compat.h from qemu-common.h to osdep.h so that it is more widely accessible and doesn't get forgotten by accident. (Failure to include it will result in build failure on old versions of glib which is likely to be unnoticed by most developers.) Signed-off-by: Peter Maydell Signed-off-by: Michael Tokarev --- include/qemu-common.h | 1 - include/qemu/osdep.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.1.4 diff --git a/include/qemu-common.h b/include/qemu-common.h index 405364f..22b010c 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -22,7 +22,6 @@ #define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR) -#include "glib-compat.h" #include "qemu/option.h" #include "qemu/host-utils.h" diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 84e84ac..59a7f8d 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -69,6 +69,8 @@ #include "sysemu/os-posix.h" #endif +#include "glib-compat.h" + #include "qapi/error.h" #if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10