dlm_stonith: include errno.h

This commit is contained in:
David Teigland 2012-08-16 13:22:38 -05:00
parent 311152f827
commit a95315d0c3
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From e8fdd228dfff06967223c7c5a36ed72129c096e7 Mon Sep 17 00:00:00 2001
From: David Teigland <teigland@redhat.com>
Date: Thu, 16 Aug 2012 12:51:13 -0500
Subject: [PATCH 2/2] dlm_stonith: include errno.h
pacemaker header now needs it
Signed-off-by: David Teigland <teigland@redhat.com>
---
fence/stonith_helper.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fence/stonith_helper.c b/fence/stonith_helper.c
index df44219..5b384c1 100644
--- a/fence/stonith_helper.c
+++ b/fence/stonith_helper.c
@@ -11,6 +11,7 @@
#include <string.h>
#include <unistd.h>
#include <syslog.h>
+#include <errno.h>
#include <pacemaker/crm/stonith-ng.h>
int nodeid;
--
1.7.10.1.362.g242cab3

View File

@ -1,6 +1,6 @@
Name: dlm
Version: 3.99.5
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2 and GPLv2+ and LGPLv2+
# For a breakdown of the licensing, see README.license
Group: System Environment/Kernel
@ -14,6 +14,7 @@ BuildRequires: systemd-units
Source0: http://people.redhat.com/teigland/%{name}-%{version}.tar.gz
Patch0: 0001-dlm_controld-fix-uninitialized-mem-for-fence_all-con.patch
Patch1: 0002-dlm_stonith-include-errno.h.patch
%if 0%{?rhel}
ExclusiveArch: i686 x86_64
@ -33,6 +34,7 @@ The kernel dlm requires a user daemon to control cluster membership.
%prep
%setup -q
%patch0 -p1 -b .0001-dlm_controld-fix-uninitialized-mem-for-fence_all-con.patch
%patch1 -p1 -b .0002-dlm_stonith-include-errno.h.patch
%build
# upstream does not require configure
@ -112,6 +114,9 @@ developing applications that use %{name}.
%{_libdir}/pkgconfig/*.pc
%changelog
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-4
- dlm_stonith: include errno.h
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-3
- dlm_controld: fix uninitialized mem for fence_all config