Received: from eggs.gnu.org ([140.186.70.92]:32865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS4uB-0000tk-1R for qemu-devel@nongnu.org; Thu, 02 Jun 2011 06:13:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QS4u9-00078s-RM for qemu-devel@nongnu.org; Thu, 02 Jun 2011 06:13:31 -0400 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <1306981290-17308-1-git-send-email-cerbere@gmail.com> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Thu, 2 Jun 2011 12:13:26 +0200 References: <1306981290-17308-1-git-send-email-cerbere@gmail.com> Sender: andreas.faerber@web.de Subject: Re: [Qemu-devel] [PATCH] Fix compilation warning due to missing header for sigaction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexandre Raymond Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Am 02.06.2011 um 04:21 schrieb Alexandre Raymond: > Fix the following warning by including signal.h directly in qemu-=20 > common.h > ----8<---- > iohandler.c: In function =91qemu_init_child_watch=92: > iohandler.c:172: warning: implicit declaration of function =91sigaction=92= > iohandler.c:172: warning: nested extern declaration of =91sigaction=92 > ----8<---- > > Signed-off-by: Alexandre Raymond Tested-by: Andreas F=E4rber Why in qemu-common.h and not in iohandler.c though? If we put it into qemu-common.h, you should remove other inclusions of =20= signal.h. Andreas > --- > qemu-common.h | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/qemu-common.h b/qemu-common.h > index b851b20..39fabc9 100644 > --- a/qemu-common.h > +++ b/qemu-common.h > @@ -39,6 +39,7 @@ typedef struct Monitor Monitor; > #include > #include > #include > +#include > > #ifdef _WIN32 > #include "qemu-os-win32.h" > --=20 > 1.7.5 > >