[vios-proxy/f16] Patch from upstream to include unistd

Nuno Santos nsantos at fedoraproject.org
Thu Jun 14 17:58:05 UTC 2012


commit 5d5bc15bda95264966e3fb5da3cee1bcfa964d40
Author: Nuno Santos <nsantos at redhat.com>
Date:   Thu Jun 14 13:58:00 2012 -0400

    Patch from upstream to include unistd

 unistd.patch    |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 vios-proxy.spec |    7 ++++++-
 2 files changed, 54 insertions(+), 1 deletions(-)
---
diff --git a/unistd.patch b/unistd.patch
new file mode 100644
index 0000000..bf2e13c
--- /dev/null
+++ b/unistd.patch
@@ -0,0 +1,48 @@
+diff --git a/src/vios_gchannel.cpp b/src/vios_gchannel.cpp
+index 0b05b71..73f5b67 100644
+--- a/src/vios_gchannel.cpp
++++ b/src/vios_gchannel.cpp
+@@ -25,6 +25,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <memory.h>
++#include <unistd.h>
+ 
+ #include "vios_gchannel.h"
+ #include "vios_framing.h"
+diff --git a/src/vios_ghost.cpp b/src/vios_ghost.cpp
+index 9be2291..8047d30 100644
+--- a/src/vios_ghost.cpp
++++ b/src/vios_ghost.cpp
+@@ -31,6 +31,7 @@
+ #include <sys/time.h>
+ #include <sys/param.h>
+ #include <signal.h>
++#include <unistd.h>
+ 
+ #include "vios_ghost.h"
+ #include "vios_gchannel.h"
+diff --git a/src/vios_hchannel.cpp b/src/vios_hchannel.cpp
+index d75356a..6ca069c 100644
+--- a/src/vios_hchannel.cpp
++++ b/src/vios_hchannel.cpp
+@@ -23,6 +23,7 @@
+ #include <fcntl.h>
+ #include <memory.h>
+ #include <sys/un.h>
++#include <unistd.h>
+ 
+ #include "vios_hchannel.h"
+ #include "vios_hguest.h"
+diff --git a/src/vios_hguest.cpp b/src/vios_hguest.cpp
+index d255388..2061bfb 100644
+--- a/src/vios_hguest.cpp
++++ b/src/vios_hguest.cpp
+@@ -29,6 +29,7 @@
+ #include <sys/time.h>
+ #include <sys/param.h>
+ #include <signal.h>
++#include <unistd.h>
+ 
+ #include "vios_hguest.h"
+ #include "vios_hchannel.h"
diff --git a/vios-proxy.spec b/vios-proxy.spec
index 81563fb..43e33f9 100644
--- a/vios-proxy.spec
+++ b/vios-proxy.spec
@@ -1,12 +1,13 @@
 Name:           vios-proxy
 Version:        0.2
-Release:        1%{?dist}
+Release:        4%{?dist}
 Summary:        Network proxy between a QEMU host and QEMU guests using virtioserial channels
 
 Group:          System Environment/Daemons
 License:        ASL 2.0
 URL:            http://git.fedorahosted.org/git/?p=vios-proxy.git
 Source0:        http://fedorahosted.org/released/vios-proxy/%{name}-%{version}.tar.gz
+Patch0:         unistd.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  boost-devel 
@@ -58,6 +59,7 @@ QEMU virtioserial channels.
 
 %prep
 %setup -q
+%patch0 -p1
 pushd src
 cmake -D CMAKE_INSTALL_PREFIX:STRING="%{_prefix}" -D CMAKE_CXX_FLAGS:STRING="%{optflags}" .
 popd
@@ -93,6 +95,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc %{_mandir}/man1/vios-proxy-guest.1.gz
 
 %changelog
+* Thu Jun 14 2012 Nuno Santos <nsantos at redhat.com> - 0.2-4
+- Patch from upstream to include unistd
+
 * Tue Oct 18 2011 Nuno Santos <nsantos at redhat.com> - 0.2-1
 - Added man pages
 


More information about the scm-commits mailing list