From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhigang Wang Subject: [PATCH]libxl: fix fstat implicit declaration build error Date: Fri, 30 Jul 2010 10:29:55 +0800 Message-ID: <4C523923.4000909@oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000606000304030602040402" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------000606000304030602040402 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi all, This patch fix this: make -C libxl install make[3]: Entering directory `/share/tmp/pkg/xen-unstable/tools/libxl' gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -g -fno-strict-aliasing -std=3Dgnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .libxl.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Werror -Wno-format-zero-length -I. -fPIC -I../../tools/libxc -I../../tools/include -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -I../../tools/blktap2/control -I../../tools/blktap2/include -I../../tools/include -c -o libxl.o libxl.c cc1: warnings being treated as errors libxl.c: In function =91libxl_file_reference_map=92: libxl.c:2968: error: implicit declaration of function =91fstat=92 make[3]: *** [libxl.o] Error 1 description: libxl: fix fstat implicit declaration build error. Signed-off-by: Zhigang Wang Thanks, Zhigang --------------000606000304030602040402 Content-Type: text/plain; name="xen-unstable-fix-fstat-build-error.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-unstable-fix-fstat-build-error.patch" diff -r 2007fd03f53d tools/libxl/libxl.c --- a/tools/libxl/libxl.c Wed Jul 28 16:32:33 2010 +0100 +++ b/tools/libxl/libxl.c Fri Jul 30 10:21:36 2010 +0800 @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include --------------000606000304030602040402 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000606000304030602040402--