[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] blktap2: fix tapdisk-channel.c
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1243501409 -3600 # Node ID 56d00bbc21e257dd2c8e9d9e0886e9122f6c93bb # Parent 241607f414c8c6b49bc6568847b28cdec2ab52f6 blktap2: fix tapdisk-channel.c This patch fixes the following error. cc1: warnings being treated as errors In file included from usr/include/sys/resource.h:25, from tapdisk-daemon.c:559: usr/include/bits/resource.h: In function 'main': usr/include/bits/resource.h:33: warning: ISO C90 forbids mixed declarations and code Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- tools/blktap2/daemon/tapdisk-daemon.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 241607f414c8 -r 56d00bbc21e2 tools/blktap2/daemon/tapdisk-daemon.c --- a/tools/blktap2/daemon/tapdisk-daemon.c Thu May 28 10:02:57 2009 +0100 +++ b/tools/blktap2/daemon/tapdisk-daemon.c Thu May 28 10:03:29 2009 +0100 @@ -31,6 +31,7 @@ #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> +#include <sys/resource.h> #include <xs.h> #include "disktypes.h" @@ -556,7 +557,6 @@ main(int argc, char *argv[]) #define CORE_DUMP #if defined(CORE_DUMP) -#include <sys/resource.h> { /* set up core-dumps*/ struct rlimit rlim; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |