[cryptkeeper] Add unistd header to lsof.cpp

Hicham HAOUARI hicham at fedoraproject.org
Thu Jan 26 10:46:57 UTC 2012


commit 7c1a499e12ec994f79f6df90c5b2355385a4efa7
Author: Hicham HAOUARI <hicham.haouari at gmail.com>
Date:   Thu Jan 26 10:46:48 2012 +0000

    Add unistd header to lsof.cpp

 cryptkeeper-0.9.5-add-unistd-header.patch |   10 ++++++++++
 cryptkeeper.spec                          |    9 ++++++---
 2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/cryptkeeper-0.9.5-add-unistd-header.patch b/cryptkeeper-0.9.5-add-unistd-header.patch
new file mode 100644
index 0000000..cc83b4f
--- /dev/null
+++ b/cryptkeeper-0.9.5-add-unistd-header.patch
@@ -0,0 +1,10 @@
+--- cryptkeeper-0.9.5/src/lsof.cpp.old	2012-01-26 10:42:27.213210838 +0000
++++ cryptkeeper-0.9.5/src/lsof.cpp	2012-01-26 10:43:24.051316892 +0000
+@@ -21,6 +21,7 @@
+ #include <vector>
+ #include <assert.h>
+ #include <cstring>
++#include <unistd.h>
+ #include "lsof.h"
+ 
+ fsuser::fsuser(const char *pid, const char *name)
diff --git a/cryptkeeper.spec b/cryptkeeper.spec
index 89fe6b0..a1364b3 100644
--- a/cryptkeeper.spec
+++ b/cryptkeeper.spec
@@ -1,6 +1,6 @@
 Name:           cryptkeeper
 Version:        0.9.5
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        A Linux system tray applet  that manages EncFS encrypted folders
 
 Group:          User Interface/X
@@ -11,12 +11,11 @@ Source1:        %{name}.1
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Patch0:         %{name}-%{version}-fix-linking.patch
+Patch1:         %{name}-%{version}-add-unistd-header.patch
 
 BuildRequires:  gtk2-devel >= 2.8
 BuildRequires:  GConf2-devel automake autoconf desktop-file-utils gettext
-%if %{fedora} >= 14
 BuildRequires:  gettext-autopoint
-%endif
 
 Requires:       fuse-encfs
 
@@ -26,6 +25,7 @@ A Linux system tray applet that manages EncFS encrypted folders
 %prep
 %setup -q
 %patch0 -p1 -b .fix-linking
+%patch1 -p1 -b .add-unistd-header
 autoreconf -if
 
 %build
@@ -54,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/man/man1/%{name}.1.gz
 
 %changelog
+* Thu Jan 26 2012 Hicham HAOUARI <hicham.haouari at gmail.com> - 0.9.5-5
+- Add unistd.h to lsof.cpp
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.5-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list