[gst123] Don't depend on someone else to include unistd.h. Fixes FTBFS on gcc4.7

Siddhesh Poyarekar siddhesh at fedoraproject.org
Tue Jan 17 09:45:47 UTC 2012


commit 71886d7128764d33b40f4cde8b2d28352e707442
Author: Siddhesh Poyarekar <siddhesh.poyarekar at gmail.com>
Date:   Tue Jan 17 15:16:59 2012 +0530

    Don't depend on someone else to include unistd.h. Fixes FTBFS on
    gcc4.7

 gst123-unistd.patch |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 gst123.spec         |    8 +++++++-
 2 files changed, 55 insertions(+), 1 deletions(-)
---
diff --git a/gst123-unistd.patch b/gst123-unistd.patch
new file mode 100644
index 0000000..1908e5d
--- /dev/null
+++ b/gst123-unistd.patch
@@ -0,0 +1,48 @@
+diff --git a/src/filestream.cc b/src/filestream.cc
+index de0fcff..a884ff2 100644
+--- a/src/filestream.cc
++++ b/src/filestream.cc
+@@ -23,6 +23,7 @@
+ #include <errno.h>
+ #include <cstring>
+ #include <glib.h>
++#include <unistd.h>
+ 
+ #include <iostream>
+ 
+diff --git a/src/httpstream.cc b/src/httpstream.cc
+index eee2927..c5ca8f6 100644
+--- a/src/httpstream.cc
++++ b/src/httpstream.cc
+@@ -21,6 +21,7 @@
+ #include <glib.h>
+ #include <cstring>
+ #include <errno.h>
++#include <unistd.h>
+ 
+ #include <iostream>
+ 
+diff --git a/src/iostream.cc b/src/iostream.cc
+index e6f5152..3043a3f 100644
+--- a/src/iostream.cc
++++ b/src/iostream.cc
+@@ -22,6 +22,7 @@
+ #include <errno.h>
+ #include <glib.h>
+ #include <cstring>
++#include <unistd.h>
+ 
+ #include <iostream>
+ #include <sstream>
+diff --git a/src/networkstream.cc b/src/networkstream.cc
+index 3e1cc97..b14e036 100644
+--- a/src/networkstream.cc
++++ b/src/networkstream.cc
+@@ -25,6 +25,7 @@
+ #include <cstring>
+ #include <glib.h>
+ #include <errno.h>
++#include <unistd.h>
+ 
+ #include <iostream>
+ 
diff --git a/gst123.spec b/gst123.spec
index ba07043..4c8bb35 100644
--- a/gst123.spec
+++ b/gst123.spec
@@ -1,9 +1,10 @@
 Summary: Command line multimedia player based on gstreamer
 Name: gst123
 Version: 0.2.1
-Release: 3%{?dist}
+Release: 4%{?dist}
 URL: http://space.twc.de/~stefan/gst123.php
 Source: http://space.twc.de/~stefan/gst123/%{name}-%{version}.tar.bz2
+Patch1: gst123-unistd.patch
 
 License: LGPLv2
 Group: Applications/Multimedia
@@ -25,6 +26,8 @@ music files.
 %prep
 %setup -q
 
+%patch1 -p1
+
 %build
 %configure
 make %{?_smp_mflags}
@@ -39,6 +42,9 @@ make install DESTDIR=%{buildroot}
 %doc COPYING AUTHORS README NEWS
 
 %changelog
+* Tue Jan 17 2012 Siddhesh Poyarekar <siddhesh at redhat.com> - 0.2.1-4
+- Don't depend on someone else to include unistd.h. Fixes FTBFS on gcc4.7
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list