fix for gcc-4.7

This commit is contained in:
Jiri Skala 2012-01-18 12:23:11 +01:00
parent 44100a6e8f
commit ea85672894
2 changed files with 20 additions and 1 deletions

11
libvpd-2.1.3-gcc47.patch Normal file
View File

@ -0,0 +1,11 @@
diff -up libvpd-2.1.3/src/helper_functions.cpp.gcc47 libvpd-2.1.3/src/helper_functions.cpp
--- libvpd-2.1.3/src/helper_functions.cpp.gcc47 2012-01-18 10:50:11.367639050 +0100
+++ libvpd-2.1.3/src/helper_functions.cpp 2012-01-18 10:52:22.453423299 +0100
@@ -24,6 +24,7 @@
#include <libvpd-2/helper_functions.hpp>
#include <cstdio>
#include <fcntl.h>
+#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <fstream>

View File

@ -3,13 +3,16 @@
Name: %{name}
Version: %{version}
Release: 3%{?dist}
Release: 4%{?dist}
Summary: VPD Database access library for lsvpd
Group: System Environment/Libraries
License: LGPLv2+
URL: http://linux-diag.sf.net/Lsvpd.html
Source: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
Patch1: libvpd-2.1.3-gcc47.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: sqlite-devel zlib-devel libstdc++-devel libtool
@ -30,6 +33,8 @@ Contains header files for building with libvpd.
%prep
%setup -q
%patch1 -p1 -b .gcc47
%build
./bootstrap.sh
%configure --disable-static
@ -63,6 +68,9 @@ Contains header files for building with libvpd.
%{_libdir}/pkgconfig/libvpd_cxx-2.pc
%changelog
* Wed Jan 18 2012 Jiri Skala <jskala@redhat.com> 2.1.3-4
- fix for gcc-4.7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild