Skip to contentSkip to conversation

libxl: fix fstat implicit declaration build error

PATCH New Zhigang Wang 1 participant 1 message Jul 30, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: fix fstat implicit declaration build error

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.

Thanks,

Zhigang

tools/libxl/libxl.c +1 -0
diff -r 2007fd03f53d tools/libxl/libxl.c
@@ -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>

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel