xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH]libxl: fix fstat implicit declaration build error
Date: Fri, 30 Jul 2010 10:29:55 +0800	[thread overview]
Message-ID: <4C523923.4000909@oracle.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]

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=gnu99 -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 ‘libxl_file_reference_map’:
libxl.c:2968: error: implicit declaration of function ‘fstat’
make[3]: *** [libxl.o] Error 1

description:
libxl: fix fstat implicit declaration build error.

Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>

Thanks,

Zhigang

[-- Attachment #2: xen-unstable-fix-fstat-build-error.patch --]
[-- Type: text/plain, Size: 330 bytes --]

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 <string.h>
 #include <stdlib.h>
 #include <sys/types.h>
+#include <sys/stat.h>
 #include <fcntl.h>
 #include <sys/select.h>
 #include <sys/mman.h>

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

                 reply	other threads:[~2010-07-30  2:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C523923.4000909@oracle.com \
    --to=zhigang.x.wang@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).