Fix missing include

This commit is contained in:
David Teigland 2012-07-23 11:02:08 -05:00
parent d890df7a8b
commit 59f06b97fd
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From 9f47804b2e8a0bc822b038427562d3a481c28693 Mon Sep 17 00:00:00 2001
From: David Teigland <teigland@redhat.com>
Date: Mon, 23 Jul 2012 10:58:50 -0500
Subject: [PATCH] daemon: include resource.h
for rlimits
Signed-off-by: David Teigland <teigland@redhat.com>
---
src/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main.c b/src/main.c
index d5f4d04..fdf068d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -32,6 +32,7 @@
#include <sys/mman.h>
#include <sys/mman.h>
#include <sys/utsname.h>
+#include <sys/resource.h>
#include <uuid/uuid.h>
#define EXTERN
--
1.7.10.1.362.g242cab3

View File

@ -1,6 +1,6 @@
Name: sanlock
Version: 2.4
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A shared disk lock manager
Group: System Environment/Base
@ -13,6 +13,8 @@ Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
Source0: https://fedorahosted.org/releases/s/a/sanlock/%{name}-%{version}.tar.gz
Patch0: 0001-daemon-include-resource.h.patch
%description
sanlock uses disk paxos to manage leases on shared storage.
Hosts connected to a common SAN can use this to synchronize their
@ -20,6 +22,7 @@ access to the shared disks.
%prep
%setup -q
%patch0 -p1 -b .0001-daemon-include-resource.h.patch
%build
# upstream does not require configure