[hercstudio] fix unistd.h include

Dan Horák sharkcz at fedoraproject.org
Sun Jan 15 10:41:04 UTC 2012


commit 2f1112ed30d4af1c510af1562c84d2f8ba0fe082
Author: Dan Horák <dan at danny.cz>
Date:   Sun Jan 15 11:40:58 2012 +0100

    fix unistd.h include

 hercstudio.spec                   |    8 +++++++-
 herculesstudio-1.3.0-unistd.patch |   22 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/hercstudio.spec b/hercstudio.spec
index 5af6a0d..b4d99cb 100644
--- a/hercstudio.spec
+++ b/hercstudio.spec
@@ -1,6 +1,6 @@
 Name:           hercstudio
 Version:        1.3.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        GUI front-end to the Hercules mainframe Emulator
 
 Group:          Applications/Emulators
@@ -10,6 +10,8 @@ Source0:        http://www.mvsdasd.org/hercstudio/herculesstudio-%{version}-src.
 Source1:        %{name}.desktop
 # make build verbose
 Patch0:         herculesstudio-1.3.0-verbose-build.patch
+# fix unistd.h include
+Patch1:         herculesstudio-1.3.0-unistd.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  qt4-devel
@@ -24,6 +26,7 @@ GUI front-end to the Hercules mainframe Emulator.
 %prep
 %setup -q -c
 %patch0 -p1 -b .verbose-build
+%patch1 -p1 -b .unistd
 
 
 %build
@@ -57,6 +60,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Jan 15 2012 Dan Horák <dan[at]danny.cz> - 1.3.0-3
+- fix unistd.h include
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/herculesstudio-1.3.0-unistd.patch b/herculesstudio-1.3.0-unistd.patch
new file mode 100644
index 0000000..b125933
--- /dev/null
+++ b/herculesstudio-1.3.0-unistd.patch
@@ -0,0 +1,22 @@
+diff -up hercstudio-1.3.0/HercStudio/HerculesExecutor.cpp.unistd hercstudio-1.3.0/HercStudio/HerculesExecutor.cpp
+--- hercstudio-1.3.0/HercStudio/HerculesExecutor.cpp.unistd	2012-01-15 11:32:20.000000000 +0100
++++ hercstudio-1.3.0/HercStudio/HerculesExecutor.cpp	2012-01-15 11:32:28.000000000 +0100
+@@ -31,6 +31,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#include <unistd.h>
+ #include <cerrno>
+ #include <iostream>
+ 
+diff -up hercstudio-1.3.0/HercStudio/MainWindow.cpp.unistd hercstudio-1.3.0/HercStudio/MainWindow.cpp
+--- hercstudio-1.3.0/HercStudio/MainWindow.cpp.unistd	2012-01-15 11:32:36.000000000 +0100
++++ hercstudio-1.3.0/HercStudio/MainWindow.cpp	2012-01-15 11:40:21.000000000 +0100
+@@ -58,6 +58,7 @@
+ 
+ #include <iostream>
+ #include "cerrno"
++#include <unistd.h>
+ #ifndef hFramework
+ #include <err.h>
+ #endif


More information about the scm-commits mailing list