From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrDFW-0001tg-Mi for qemu-devel@nongnu.org; Wed, 10 Aug 2011 14:11:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrDFS-0004JR-6h for qemu-devel@nongnu.org; Wed, 10 Aug 2011 14:11:26 -0400 Received: from mout.perfora.net ([74.208.4.194]:62363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrDFR-0004I1-L5 for qemu-devel@nongnu.org; Wed, 10 Aug 2011 14:11:22 -0400 From: Michael Roth Date: Wed, 10 Aug 2011 13:10:51 -0500 Message-Id: <1312999851-28390-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH STABLE] qapi: fix build issue due to missing newline in generated header List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, mdroth@linux.vnet.ibm.com Fixes a build issue on RHEL5, and potentially other distros, where gcc will generate an error due to us not writing a trailing "\n" when generating *qmp-commands.h Signed-off-by: Michael Roth --- scripts/qapi-commands.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py index 9ad4c54..bf61740 100644 --- a/scripts/qapi-commands.py +++ b/scripts/qapi-commands.py @@ -375,7 +375,7 @@ if dispatch_type == "sync": ret = gen_marshal_input(cmd['command'], arglist, ret_type) + "\n" fdef.write(ret) - fdecl.write("\n#endif"); + fdecl.write("\n#endif\n"); ret = gen_registry(commands) fdef.write(ret) -- 1.7.0.4