[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] blktap2: fix tapdisk-channel.c
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> diff --git a/tools/blktap2/daemon/tapdisk-daemon.c b/tools/blktap2/daemon/tapdisk-daemon.c --- a/tools/blktap2/daemon/tapdisk-daemon.c +++ b/tools/blktap2/daemon/tapdisk-daemon.c @@ -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; -- yamahata _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |