patches/libnice-02-solaris.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2930 642b55fbaa83
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2930
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     1
--- libnice-0.0.13.orig/configure.ac	2010-07-20 17:56:56.000000000 -0400
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     2
+++ libnice-0.0.13/configure.ac	2010-09-21 20:10:59.960332261 -0400
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     3
@@ -55,7 +55,9 @@
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     4
 AC_HEADER_ASSERT
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     5
 AC_HEADER_STDBOOL
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     6
 AC_DEFINE([_FORTIFY_SOURCE], [2], [Define to `2' to get GNU/libc warnings.])
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     7
+AC_DEFINE([_XPG4_2], [ ], [Use XPG4.2 struct msghdr, but don't require C99.])
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     8
 AC_DEFINE([NICEAPI_EXPORT], [ ], [Public library function implementation])
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     9
+AC_CHECK_HEADERS([sys/sockio.h])
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    10
 AC_CHECK_HEADERS([arpa/inet.h net/in.h ifaddrs.h], \
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    11
 		      [AC_DEFINE(HAVE_GETIFADDRS, [1], \
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    12
 		       [Whether getifaddrs() is available on the system])])
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    13
@@ -71,8 +92,12 @@
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    14
 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    15
 # Checks for libraries.
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    16
 AC_CHECK_LIB(rt, clock_gettime, [LIBRT="-lrt"], [LIBRT=""])
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    17
+AC_CHECK_LIB(socket, socket, [LIBSOCKET="-lsocket"], [LIBSOCKET=""])
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    18
+AC_CHECK_LIB(nsl, getaddrinfo, [LIBNSL="-lnsl"], [LIBNSL=""])
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    19
 AC_CHECK_FUNCS([poll])
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    20
 AC_SUBST(LIBRT)
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    21
+AC_SUBST(LIBSOCKET)
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    22
+AC_SUBST(LIBNSL)
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    23
 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    24
 PKG_CHECK_MODULES(GLIB, [dnl
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    25
 	glib-2.0 >= 2.10 dnl
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    26
--- libnice-0.0.13.orig/agent/interfaces.c	2010-07-20 17:54:40.000000000 -0400
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    27
+++ libnice-0.0.13/agent/interfaces.c	2010-09-21 20:09:24.623604051 -0400
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    28
@@ -46,6 +46,10 @@
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    29
  #include <ifaddrs.h>
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    30
 #endif
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    31
 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    32
+#ifdef HAVE_SYS_SOCKIO_H
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    33
+ #include <sys/sockio.h>
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    34
+#endif
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    35
+
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    36
 #include <net/if.h>
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    37
 #include <net/if_arp.h>
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    38
 #include <arpa/inet.h>
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    39
--- libnice-0.0.13.orig/stun/tools/Makefile.am	2009-08-14 18:46:12.000000000 -0400
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    40
+++ libnice-0.0.13/stun/tools/Makefile.am	2010-09-21 19:55:27.473601046 -0400
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    41
@@ -16,10 +16,10 @@
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    42
 check_PROGRAMS = stund
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    43
 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    44
 stund_SOURCES = stund.c stund.h
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    45
-stund_LDADD = $(top_builddir)/stun/libstun.la
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    46
+stund_LDADD = $(top_builddir)/stun/libstun.la $(LIBSOCKET)
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    47
 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    48
 stunbdc_SOURCES = stunbdc.c 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    49
 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    50
-stunbdc_LDADD = $(top_builddir)/stun/libstun.la
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    51
+stunbdc_LDADD = $(top_builddir)/stun/libstun.la $(LIBSOCKET) $(LIBNSL)
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    52
 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    53
 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    54
--- libnice-0.0.13.orig/stun/Makefile.am	2009-08-14 18:46:12.000000000 -0400
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    55
+++ libnice-0.0.13/stun/Makefile.am	2010-09-21 12:26:22.892182282 -0400
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    56
@@ -31,7 +31,7 @@
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    57
 	usages/turn.c usages/turn.h \
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    58
 	usages/timer.c usages/timer.h
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    59
 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    60
-libstun_la_LIBADD = $(LIBRT)
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    61
+libstun_la_LIBADD = $(LIBRT) $(LIBSOCKET)
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    62
 
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    63
 EXTRA_DIST = win32_common.h
642b55fbaa83 2010-09-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    64