File libnice-0.1.7.patch of Package mingw64-libnice

--- agent/address.c
+++ agent/address.c
@@ -58,6 +58,11 @@
   (memcmp ((const void *) (a), (const void *) (b), sizeof (struct in6_addr)) == 0)
 #endif
 
+#ifndef IN6_ARE_ADDR_EQUAL
+#  define IN6_ARE_ADDR_EQUAL(a,b) \
+     (0 == memcmp((const void *)(a), (const void *)(b), \
+     sizeof(struct in6_addr)))
+#endif
 
 static const char *
 inet_ntop_win32 (int af, const void *src, char *dst, socklen_t cnt)
--- agent/pseudotcp.h
+++ agent/pseudotcp.h
@@ -60,10 +60,18 @@
 
 #ifdef G_OS_WIN32
 #  include <winsock2.h>
-#  define ECONNABORTED WSAECONNABORTED
-#  define ENOTCONN WSAENOTCONN
-#  define EWOULDBLOCK WSAEWOULDBLOCK
-#  define ECONNRESET WSAECONNRESET
+#  ifndef ECONNABORTED
+#    define ECONNABORTED WSAECONNABORTED
+#  endif
+#  ifndef ENOTCONN
+#    define ENOTCONN WSAENOTCONN
+#  endif
+#  ifndef EWOULDBLOCK
+#    define EWOULDBLOCK WSAEWOULDBLOCK
+#  endif
+#  ifndef ECONNRESET
+#    define ECONNRESET WSAECONNRESET
+#  endif
 #endif
 
 #include "agent.h"
--- configure.ac
+++ configure.ac
@@ -8,7 +8,7 @@
 AC_INIT([libnice],[0.1.7])
 LIBNICE_RELEASE="yes"
 
-AC_CANONICAL_TARGET
+AC_CANONICAL_HOST
 
 AC_CONFIG_SRCDIR([agent/agent.c])
 AC_CONFIG_HEADERS([config.h])
--- gst/Makefile.am
+++ gst/Makefile.am
@@ -33,7 +33,7 @@
 
 libgstnice_la_LIBADD = 	$(COMMON_LIBADD) $(GST_LIBS)
 
-libgstnice_la_LDFLAGS = -module -avoid-version
+libgstnice_la_LDFLAGS = -no-undefined -module -avoid-version
 endif
 
 
@@ -52,5 +52,5 @@
 
 libgstnice010_la_LIBADD = $(COMMON_LIBADD) $(GST010_LIBS)
 
-libgstnice010_la_LDFLAGS = -module -avoid-version
+libgstnice010_la_LDFLAGS = -no-undefined -module -avoid-version
 endif
openSUSE Build Service is sponsored by