[sanlock] Fix missing include

David Teigland teigland at fedoraproject.org
Mon Jul 23 16:02:45 UTC 2012


commit 59f06b97fddd29712cc2920b5139479919aa4fe2
Author: David Teigland <teigland at redhat.com>
Date:   Mon Jul 23 11:02:08 2012 -0500

    Fix missing include

 0001-daemon-include-resource.h.patch |   27 +++++++++++++++++++++++++++
 sanlock.spec                         |    5 ++++-
 2 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/0001-daemon-include-resource.h.patch b/0001-daemon-include-resource.h.patch
new file mode 100644
index 0000000..add659d
--- /dev/null
+++ b/0001-daemon-include-resource.h.patch
@@ -0,0 +1,27 @@
+From 9f47804b2e8a0bc822b038427562d3a481c28693 Mon Sep 17 00:00:00 2001
+From: David Teigland <teigland at 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 at 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
+
diff --git a/sanlock.spec b/sanlock.spec
index 00d617b..995c287 100644
--- a/sanlock.spec
+++ b/sanlock.spec
@@ -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


More information about the scm-commits mailing list