opensips/opensips.patch.rtpproxy

changeset 377
67e813202d53
child 547
1c75a8bb0fec
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/opensips/opensips.patch.rtpproxy	Wed Sep 21 14:04:16 2011 +0200
     1.3 @@ -0,0 +1,57 @@
     1.4 +Index: main.c
     1.5 +diff -Nau main.c.orig main.c
     1.6 +--- main.c.orig	2008-06-17 05:19:48 +0200
     1.7 ++++ main.c	2008-08-09 11:58:55 +0200
     1.8 +@@ -86,7 +86,11 @@
     1.9 + 	bindhost = NULL;
    1.10 + 
    1.11 +     if ((n = resolve(ia, pf, bindhost, servname, AI_PASSIVE)) != 0)
    1.12 ++#if defined(__sun__)
    1.13 ++	errx(1, "setbindhost");
    1.14 ++#else
    1.15 + 	errx(1, "setbindhost: %s", gai_strerror(n));
    1.16 ++#endif
    1.17 + }
    1.18 + 
    1.19 + static void
    1.20 +Index: rtpp_command.c
    1.21 +diff -Nau rtpp_command.c.orig rtpp_command.c
    1.22 +--- rtpp_command.c.orig	2009-03-25 02:53:17.397562078 +0100
    1.23 ++++ rtpp_command.c	2009-03-25 02:52:59.126654989 +0100
    1.24 +@@ -72,6 +72,36 @@
    1.25 + static void handle_query(struct cfg *, int, struct sockaddr_storage *,
    1.26 +   socklen_t, char *, struct rtpp_session *, int);
    1.27 + 
    1.28 ++#if defined(__sun__)
    1.29 ++static char
    1.30 ++*strsep(char **stringp, const char *delim)
    1.31 ++{
    1.32 ++	char *s;
    1.33 ++	const char *spanp;
    1.34 ++	int c, sc;
    1.35 ++	char *tok;
    1.36 ++
    1.37 ++	if ((s = *stringp) == NULL)
    1.38 ++		return NULL;
    1.39 ++	for (tok = s;;) {
    1.40 ++		c = *s++;
    1.41 ++		spanp = delim;
    1.42 ++		do {
    1.43 ++			if ((sc = *spanp++) == c) {
    1.44 ++				if (c == 0)
    1.45 ++					s = NULL;
    1.46 ++				else
    1.47 ++					s[-1] = 0;
    1.48 ++				*stringp = s;
    1.49 ++				return tok;
    1.50 ++			}
    1.51 ++		} while (sc != 0);
    1.52 ++	}
    1.53 ++	/* NOTREACHED */
    1.54 ++    return NULL;
    1.55 ++}
    1.56 ++
    1.57 ++#endif
    1.58 + static int
    1.59 + create_twinlistener(struct cfg *cf, struct sockaddr *ia, int port, int *fds)
    1.60 + {

mercurial