Received: from eggs.gnu.org ([208.118.235.92]:39990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbaXc-0006Cm-IN for qemu-devel@nongnu.org; Thu, 22 Nov 2012 12:26:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbaXZ-0007J5-3k for qemu-devel@nongnu.org; Thu, 22 Nov 2012 12:26:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbaXY-0007I8-Sb for qemu-devel@nongnu.org; Thu, 22 Nov 2012 12:26:17 -0500 From: Eduardo Habkost Date: Thu, 22 Nov 2012 15:27:28 -0200 Message-Id: <1353605251-22218-6-git-send-email-ehabkost@redhat.com> In-Reply-To: <1353605251-22218-1-git-send-email-ehabkost@redhat.com> References: <1353605251-22218-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 5/8] qga/channel-posix.c: Include headers it needs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Include: - for errno - & for fcntl() - "osdep.h" for qemu_open() - for exit() Some of those headers were probably being included by accident because some other headers were including qemu-common.h, but those headers should eventually stop including qemu-common.h. Signed-off-by: Eduardo Habkost Signed-off-by: Andreas F=C3=A4rber Signed-off-by: Igor Mammedov --- v2: qemu-common.h indirectly provided definition for exit(), so when replacing it with "osdep.h" add explicitly for exit() --- qga/channel-posix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qga/channel-posix.c b/qga/channel-posix.c index d152827..769a559 100644 --- a/qga/channel-posix.c +++ b/qga/channel-posix.c @@ -1,5 +1,10 @@ #include #include +#include +#include +#include +#include +#include "osdep.h" #include "qemu_socket.h" #include "qga/channel.h" =20 --=20 1.7.11.7