[barry] fix for gcc4.7

Nathanael Noblet gnat at fedoraproject.org
Thu Jan 5 19:19:34 UTC 2012


commit b831ef53be529b6390981ae82b25550e59fab120
Author: Nathanael D. Noblet <nathanael at gnat.ca>
Date:   Thu Jan 5 12:19:01 2012 -0700

    fix for gcc4.7

 barry.spec    |    3 +++
 gcc-4.7.patch |   21 +++++++++++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/barry.spec b/barry.spec
index 0c1dc8a..9a311d7 100644
--- a/barry.spec
+++ b/barry.spec
@@ -18,6 +18,8 @@ Source0:        http://sourceforge.net/projects/%{name}/files/%{name}/%{name}-%{
 
 # pulled from unreleased v0.17.2
 Patch0:			barry-0.17.2-destructor-exception.patch
+Patch1:			gcc-4.7.patch
+
 BuildRequires:  libusb-devel boost-devel desktop-file-utils gtkmm24-devel libxml++-devel
 BuildRequires:  libglademm24-devel libglade2-devel libtar-devel libtool
 BuildRequires:  fuse-devel gettext-devel doxygen autoconf zlib-devel
@@ -71,6 +73,7 @@ This package contains the opensync plugin to synchronize your BlackBerry.
 %{__rm} -rf ./doc/www/*.sh
 find ./doc/www/doxygen/html -type f -size 0 -name \*.map -exec rm '{}' \;
 %patch0 -p1 
+%patch1 -p0
 
 %build
 # main tree
diff --git a/gcc-4.7.patch b/gcc-4.7.patch
new file mode 100644
index 0000000..7f9852c
--- /dev/null
+++ b/gcc-4.7.patch
@@ -0,0 +1,21 @@
+--- src/packet.h.org	2012-01-05 11:49:43.000000000 -0700
++++ src/packet.h	2012-01-05 11:50:02.873589023 -0700
+@@ -26,6 +26,7 @@
+ 
+ #include <string>
+ #include <stdint.h>
++#include <unistd.h>
+ #include "protocol.h"
+ #include "data.h"
+ 
+--- src/j_jdwp.cc.org	2012-01-05 12:08:54.772293943 -0700
++++ src/j_jdwp.cc	2012-01-05 12:09:10.524984146 -0700
+@@ -24,7 +24,7 @@
+ #include <sstream>
+ #include <iomanip>
+ #include <errno.h>
+-
++#include <unistd.h>
+ 
+ namespace Barry { namespace JDWP {
+ 


More information about the scm-commits mailing list