aboutsummaryrefslogtreecommitdiffstats
path: root/tools/blktap2
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-05-28 10:03:29 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-05-28 10:03:29 +0100
commit60dadd604d277e30f6908d1ac8cb8add12261d1b (patch)
tree72d9454b7984367b88c2c1ddc757d6fcf1046f99 /tools/blktap2
parent3026986b0f62183e897f7de8ca2f6e1216ad5074 (diff)
downloadxen-60dadd604d277e30f6908d1ac8cb8add12261d1b.tar.gz
xen-60dadd604d277e30f6908d1ac8cb8add12261d1b.tar.bz2
xen-60dadd604d277e30f6908d1ac8cb8add12261d1b.zip
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@valinux.co.jp>
Diffstat (limited to 'tools/blktap2')
-rw-r--r--tools/blktap2/daemon/tapdisk-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/blktap2/daemon/tapdisk-daemon.c b/tools/blktap2/daemon/tapdisk-daemon.c
index ecfc0f3c5b..ce3590400c 100644
--- 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;