]> xenbits.xensource.com Git - xen.git/commitdiff
blktap2: fix tapdisk-channel.c
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 09:03:29 +0000 (10:03 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 09:03:29 +0000 (10:03 +0100)
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>
tools/blktap2/daemon/tapdisk-daemon.c

index ecfc0f3c5b8a12953c8ca5740b700d1dea576d25..ce3590400c49d51268e9fc8a9133df8f14a06199 100644 (file)
@@ -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;