- fence_zvm: fix "uintptr_t" undeclared

This commit is contained in:
Oyvind Albrigtsen 2017-08-03 13:54:03 +02:00
parent 0dc0af204c
commit 32e8d6502b
2 changed files with 16 additions and 1 deletions

View File

@ -16,13 +16,14 @@
Name: fence-agents
Summary: Fence Agents for Red Hat Cluster
Version: 4.0.24
Release: 9%{?alphatag:.%{alphatag}}%{?dist}
Release: 10%{?alphatag:.%{alphatag}}%{?dist}
License: GPLv2+ and LGPLv2+
Group: System Environment/Base
URL: http://sourceware.org/cluster/wiki/
Source0: https://fedorahosted.org/releases/f/e/fence-agents/%{name}-%{version}.tar.xz
Patch0: python3.patch
Patch1: bz1473908-fix-pexpect-encoding.patch
Patch2: fence_zvm-fix-uintptr_t-undeclared.patch
%if 0%{?fedora}
%global testagents zvm virsh raritan rcd_serial
@ -778,6 +779,9 @@ The fence-agents-zvm package contains a fence agent for IBM z/VM over IP.
%{_mandir}/man8/fence_zvmip.8*
%changelog
* Thu Aug 3 2017 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.0.24-10
- fence_zvm: fix "uintptr_t" undeclared
* Thu Aug 3 2017 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.0.24-9
- Fix encoding for pexpect with Python 3.6

View File

@ -0,0 +1,11 @@
diff -uNr a/fence/agents/zvm/fence_zvm.c b/fence/agents/zvm/fence_zvm.c
--- a/fence/agents/zvm/fence_zvm.c 2016-08-22 14:33:34.000000000 +0200
+++ b/fence/agents/zvm/fence_zvm.c 2017-08-03 13:34:08.750277394 +0200
@@ -25,6 +25,7 @@
#ifdef __s390__
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>