[blahtexml] add patch for gcc47

Peter Robinson pbrobinson at fedoraproject.org
Wed May 2 22:43:21 UTC 2012


commit 3de1b44853d3c9ac1557451317a3c7856e388a8c
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Wed May 2 23:43:12 2012 +0100

    add patch for gcc47

 blahtexml-gcc47.patch |   20 ++++++++++++++++++++
 blahtexml.spec        |    2 ++
 2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/blahtexml-gcc47.patch b/blahtexml-gcc47.patch
new file mode 100644
index 0000000..d51b192
--- /dev/null
+++ b/blahtexml-gcc47.patch
@@ -0,0 +1,20 @@
+--- blahtexml-0.9/Source/main.cpp.orig	2012-05-02 23:32:40.622774686 +0100
++++ blahtexml-0.9/Source/main.cpp	2012-05-02 23:33:25.639881969 +0100
+@@ -24,6 +24,7 @@
+ #include <stdlib.h>
+ #include <sstream>
+ #include <stdexcept>
++#include <unistd.h>
+ 
+ using namespace std;
+ using namespace blahtex;
+--- blahtexml-0.9/Source/mainPng.cpp.orig	2012-05-02 23:32:56.370162007 +0100
++++ blahtexml-0.9/Source/mainPng.cpp	2012-05-02 23:33:16.270651497 +0100
+@@ -27,6 +27,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <sstream>
++#include <unistd.h>
+ 
+ 
+ using namespace std;
diff --git a/blahtexml.spec b/blahtexml.spec
index 092db80..715dd64 100644
--- a/blahtexml.spec
+++ b/blahtexml.spec
@@ -7,6 +7,7 @@ Group:          Applications/Publishing
 License:        BSD
 URL:            http://gva.noekeon.org/blahtexml/
 Source0:        http://gva.noekeon.org/blahtexml/blahtexml-%{version}-src.tar.gz
+Patch0:         blahtexml-gcc47.patch
 
 BuildRequires:  xerces-c-devel
 
@@ -23,6 +24,7 @@ file into MathML.
 
 %prep
 %setup -q
+%patch0 -p1 -b .gcc47
 
 
 %build


More information about the scm-commits mailing list