[SCM] crtmpserver/master: Fix compatibility with gcc 4.7

jet-guest at users.alioth.debian.org jet-guest at users.alioth.debian.org
Mon Apr 9 23:13:48 UTC 2012


The following commit has been merged in the master branch:
commit 8d0cdc9a311b1bfa5ea5da281f33759ec12aeac6
Author: Andriy Beregovenko <jet at jet.kiev.ua>
Date:   Tue Apr 10 02:00:34 2012 +0300

    Fix compatibility with gcc 4.7
    
    Provide a patch that adds inclusion of unistd.h header.

diff --git a/debian/patches/19_gcc_4_7_compatibility.diff b/debian/patches/19_gcc_4_7_compatibility.diff
new file mode 100644
index 0000000..1c17c65
--- /dev/null
+++ b/debian/patches/19_gcc_4_7_compatibility.diff
@@ -0,0 +1,19 @@
+From: Andriy Beregovenko <jet at jet.kiev.ua>
+Bug-Debian: http://bugs.debian.org/667144
+Description: Fix compatibility issue with gcc 4.7
+
+In gcc 4.7 some functions and constants was moved to
+unistd.h. This patch adds a unistd header inclusion.
+
+diff --git a/common/include/platform/linux/linuxplatform.h b/common/include/platform/linux/linuxplatform.h
+index 25d7185..7b02a49 100644
+--- a/common/include/platform/linux/linuxplatform.h
++++ b/common/include/platform/linux/linuxplatform.h
+@@ -38,6 +38,7 @@
+ #include <dlfcn.h>
+ #include <errno.h>
+ #include <fcntl.h>
++#include <unistd.h>
+ #include <fstream>
+ #include <glob.h>
+ #include <iostream>
diff --git a/debian/patches/series b/debian/patches/series
index 78aabfb..11d112d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 15_use_system_lua.diff
 16_add_header_install.diff
 18_enable_cmake_find_default_paths.diff
+19_gcc_4_7_compatibility.diff

-- 
crtmpserver packaging



More information about the pkg-multimedia-commits mailing list