From patchwork Thu Nov 22 17:27:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [5/8] qga/channel-posix.c: Include headers it needs Date: Thu, 22 Nov 2012 07:27:28 -0000 From: Eduardo Habkost X-Patchwork-Id: 201096 Message-Id: <1353605251-22218-6-git-send-email-ehabkost@redhat.com> 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ärber 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"