Add patches to fix some compile errors.
This commit is contained in:
parent
b8c4f623fb
commit
d39befdb8e
15
linphone-2.1.0-ni_maxhost_hack.patch
Normal file
15
linphone-2.1.0-ni_maxhost_hack.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/mediastreamer2/src/ice.c b/mediastreamer2/src/ice.c
|
||||||
|
index c4296c0..615c7ab 100644
|
||||||
|
--- a/mediastreamer2/src/ice.c
|
||||||
|
+++ b/mediastreamer2/src/ice.c
|
||||||
|
@@ -25,6 +25,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifndef NI_MAXHOST
|
||||||
|
+#define NI_MAXHOST 1025
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#include "mediastreamer2/ice.h"
|
||||||
|
#include "mediastreamer2/mscommon.h"
|
||||||
|
|
27
linphone-2.1.0-no_werror.patch
Normal file
27
linphone-2.1.0-no_werror.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
diff --git a/configure.in b/configure.in
|
||||||
|
index 3cb7bf7..307679b 100644
|
||||||
|
--- a/configure.in
|
||||||
|
+++ b/configure.in
|
||||||
|
@@ -275,7 +275,6 @@ AC_ARG_ENABLE(strict,
|
||||||
|
|
||||||
|
if test "$GCC$strictness" = "yesyes" ; then
|
||||||
|
STRICT_OPTIONS="-Wall -Wp,-D_FORTIFY_SOURCE=2"
|
||||||
|
- STRICT_OPTIONS="$STRICT_OPTIONS -Werror"
|
||||||
|
CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||||
|
fi
|
||||||
|
|
||||||
|
diff --git a/mediastreamer2/configure.ac b/mediastreamer2/configure.ac
|
||||||
|
index f663b56..18c1e30 100644
|
||||||
|
--- a/mediastreamer2/configure.ac
|
||||||
|
+++ b/mediastreamer2/configure.ac
|
||||||
|
@@ -109,10 +109,6 @@ if test x$ac_cv_c_bigendian = xyes ; then
|
||||||
|
CFLAGS="$CFLAGS -D_BIGENDIAN "
|
||||||
|
fi
|
||||||
|
|
||||||
|
-if test $GCC = yes && test $wall_werror = yes; then
|
||||||
|
- CFLAGS="$CFLAGS -Werror "
|
||||||
|
-fi
|
||||||
|
-
|
||||||
|
macosx_found=no
|
||||||
|
|
||||||
|
dnl add thread flags
|
@ -9,6 +9,8 @@ URL: http://www.linphone.org/
|
|||||||
Source0: http://download.savannah.nongnu.org/releases/linphone/2.1.x/sources/%{name}-%{version}.tar.gz
|
Source0: http://download.savannah.nongnu.org/releases/linphone/2.1.x/sources/%{name}-%{version}.tar.gz
|
||||||
Patch0: linphone-2.1.0-imagedir.patch
|
Patch0: linphone-2.1.0-imagedir.patch
|
||||||
Patch1: linphone-2.1.0-novideo.patch
|
Patch1: linphone-2.1.0-novideo.patch
|
||||||
|
Patch2: linphone-2.1.0-ni_maxhost_hack.patch
|
||||||
|
Patch3: linphone-2.1.0-no_werror.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: libosip2-devel >= 3.0.3-2
|
BuildRequires: libosip2-devel >= 3.0.3-2
|
||||||
@ -66,6 +68,8 @@ Libraries and headers required to develop software with linphone.
|
|||||||
%setup0 -q
|
%setup0 -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
#pushd share/cs
|
#pushd share/cs
|
||||||
#for f in *.1
|
#for f in *.1
|
||||||
|
Loading…
Reference in New Issue
Block a user