From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsGeQ-00060s-1u for qemu-devel@nongnu.org; Mon, 07 Jan 2013 12:38:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsGeN-0004f1-Rd for qemu-devel@nongnu.org; Mon, 07 Jan 2013 12:38:18 -0500 Message-ID: <50EB0805.604@weilnetz.de> Date: Mon, 07 Jan 2013 18:38:13 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1357579795-11770-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1357579795-11770-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qga/channel-posix.c: Explicitly include string.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org Am 07.01.2013 18:29, schrieb Peter Maydell: > Explicitly include string.h to avoid warnings under MacOS X/clang > about implicit declarations of strerror() and strlen(). > > Signed-off-by: Peter Maydell > --- > I assume under Linux these are implicitly dragged in via one of the > other headers. > > qga/channel-posix.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/qga/channel-posix.c b/qga/channel-posix.c > index d4fd628..ca9e4aa 100644 > --- a/qga/channel-posix.c > +++ b/qga/channel-posix.c > @@ -4,6 +4,7 @@ > #include > #include > #include > +#include > #include "qemu/osdep.h" > #include "qemu/sockets.h" > #include "qga/channel.h" > Better: include qemu-common.h first and remove all three standard includes. - Stefan