[mingw-nsis: 23/27] Missing #include <unistd.h> to get close(2) function.
Kalev Lember
kalev at fedoraproject.org
Wed Mar 7 16:06:14 UTC 2012
commit 31ca9f953158d160e29190b8ad522c05048ee9ab
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Mon Jan 16 12:26:25 2012 +0000
Missing #include <unistd.h> to get close(2) function.
mingw32-nsis.spec | 8 +++++++-
nsis-2.46-missing-unistd-include.patch | 11 +++++++++++
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/mingw32-nsis.spec b/mingw32-nsis.spec
index b84a53d..8013ebd 100644
--- a/mingw32-nsis.spec
+++ b/mingw32-nsis.spec
@@ -3,7 +3,7 @@
Name: mingw32-nsis
Version: 2.46
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Nullsoft Scriptable Install System
License: zlib and CPL
@@ -21,6 +21,8 @@ Patch1: nsis-2.43-rpm-opt.patch
Patch2: nsis-2.45-static-libgcc.patch
# Make plugins not depend on libstdc++-6.dll (#734905)
Patch3: nsis-2.46-static-libstdc++.patch
+# Missing #include <unistd.h> to get close(2) function.
+Patch4: nsis-2.46-missing-unistd-include.patch
BuildRequires: mingw32-filesystem >= 40
BuildRequires: mingw32-gcc
@@ -64,6 +66,7 @@ all plugins.
%patch1 -p1 -b .rpmopt
%patch2 -p1 -b .static-libgcc
%patch3 -p1 -b .static-libstdc++
+%patch4 -p1 -b .missing-unistd-include
%build
@@ -93,6 +96,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon Jan 16 2012 Richard W.M. Jones <rjones at redhat.com> - 2.46-5
+- Missing #include <unistd.h> to get close(2) function.
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.46-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
diff --git a/nsis-2.46-missing-unistd-include.patch b/nsis-2.46-missing-unistd-include.patch
new file mode 100644
index 0000000..4f4fdd2
--- /dev/null
+++ b/nsis-2.46-missing-unistd-include.patch
@@ -0,0 +1,11 @@
+--- nsis-2.46-src.old/Source/util.h 2009-03-28 09:47:26.000000000 +0000
++++ nsis-2.46-src/Source/util.h 2012-01-16 12:22:14.967416817 +0000
+@@ -17,6 +17,8 @@
+ #ifndef _UTIL_H_
+ #define _UTIL_H_
+
++#include <unistd.h>
++
+ #include <string> // for std::string
+
+ #include "boost/scoped_ptr.hpp" // for boost::scoped_ptr
More information about the scm-commits
mailing list