ia64/xen-unstable

changeset 19668:56d00bbc21e2

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>
author Keir Fraser <keir.fraser@citrix.com>
date Thu May 28 10:03:29 2009 +0100 (2009-05-28)
parents 241607f414c8
children e95c4611a0ae
files tools/blktap2/daemon/tapdisk-daemon.c
line diff
     1.1 --- a/tools/blktap2/daemon/tapdisk-daemon.c	Thu May 28 10:02:57 2009 +0100
     1.2 +++ b/tools/blktap2/daemon/tapdisk-daemon.c	Thu May 28 10:03:29 2009 +0100
     1.3 @@ -31,6 +31,7 @@
     1.4  #include <stdlib.h>
     1.5  #include <string.h>
     1.6  #include <sys/ioctl.h>
     1.7 +#include <sys/resource.h>
     1.8  
     1.9  #include <xs.h>
    1.10  #include "disktypes.h"
    1.11 @@ -556,7 +557,6 @@ main(int argc, char *argv[])
    1.12  
    1.13  #define CORE_DUMP
    1.14  #if defined(CORE_DUMP)
    1.15 -#include <sys/resource.h>
    1.16  	{
    1.17  		/* set up core-dumps*/
    1.18  		struct rlimit rlim;