[podofo] build fix for unistd.h

Dan Horák sharkcz at fedoraproject.org
Mon Jan 16 17:21:31 UTC 2012


commit b4d1421b2faa14bf626fe992e8d60300e5f527be
Author: Dan Horák <dan at danny.cz>
Date:   Mon Jan 16 18:21:26 2012 +0100

    build fix for unistd.h

 podofo-0.9.1-unistd.patch |   11 +++++++++++
 podofo.spec               |    5 +++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/podofo-0.9.1-unistd.patch b/podofo-0.9.1-unistd.patch
new file mode 100644
index 0000000..5cb9ad6
--- /dev/null
+++ b/podofo-0.9.1-unistd.patch
@@ -0,0 +1,11 @@
+diff -up podofo-0.9.1/test/unit/TestUtils.cpp.unistd podofo-0.9.1/test/unit/TestUtils.cpp
+--- podofo-0.9.1/test/unit/TestUtils.cpp.unistd	2012-01-16 18:12:52.000000000 +0100
++++ podofo-0.9.1/test/unit/TestUtils.cpp	2012-01-16 18:13:00.000000000 +0100
+@@ -23,6 +23,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <unistd.h>
+ 
+ #if defined(_WIN32) || defined(_WIN64)
+ #include <windows.h>
diff --git a/podofo.spec b/podofo.spec
index 38c7419..8067c79 100644
--- a/podofo.spec
+++ b/podofo.spec
@@ -7,6 +7,7 @@ Group:          Applications/Publishing
 License:        GPLv2+
 URL:            http://podofo.sourceforge.net
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Patch0:         %{name}-0.9.1-unistd.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  cmake
@@ -56,6 +57,7 @@ Development files and documentation for the %{name} library.
 
 %prep
 %setup -q
+%patch0 -p1 -b .unistd
 
 
 %build
@@ -105,6 +107,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Jan 16 2012 Dan Horák <dan[at]danny.cz> - 0.9.1-4
+- build fix for unistd.h
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list