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>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
+#include <sys/resource.h>
#include <xs.h>
#include "disktypes.h"
#define CORE_DUMP
#if defined(CORE_DUMP)
-#include <sys/resource.h>
{
/* set up core-dumps*/
struct rlimit rlim;