Use siginfo_t rather than struct siginfo.

This commit is contained in:
William Cohen 2012-06-11 15:52:18 -04:00
parent 6c3841076d
commit beb3c79401
2 changed files with 18 additions and 1 deletions

12
papi-siginfo.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up papi-4.4.0/src/linux-context.h.siginfo papi-4.4.0/src/linux-context.h
--- papi-4.4.0/src/linux-context.h.siginfo 2012-06-11 15:40:00.389999991 -0400
+++ papi-4.4.0/src/linux-context.h 2012-06-11 15:40:12.423000001 -0400
@@ -4,7 +4,7 @@
/* Signal handling functions */
#undef hwd_siginfo_t
-typedef struct siginfo hwd_siginfo_t;
+typedef siginfo_t hwd_siginfo_t;
#undef hwd_ucontext_t
typedef ucontext_t hwd_ucontext_t;

View File

@ -2,11 +2,12 @@
Summary: Performance Application Programming Interface
Name: papi
Version: 4.4.0
Release: 3%{?dist}
Release: 4%{?dist}
License: BSD
Group: Development/System
URL: http://icl.cs.utk.edu/papi/
Source0: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz
Patch1: papi-siginfo.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: ncurses-devel
BuildRequires: gcc-gfortran
@ -47,6 +48,7 @@ the PAPI user-space libraries and interfaces.
%prep
%setup -q
%patch1 -p1
%build
%if %{without bundled_libpfm}
@ -109,6 +111,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.a
%changelog
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-4
- Use siginfo_t rather than struct siginfo.
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-3
- Correct build requires.