diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-01-22 08:31:18 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-01-22 08:31:18 +0000 |
commit | 2ca1b83b5ef29eca6a8772714529f40f02967e4e (patch) | |
tree | e4571ff40b92cc72fc6f0067837946cea53b1b6b /audio/liblo | |
parent | - Update to 1.97F (diff) |
- Fix problem that made it impossible to use GUI for DSSI modules.
PR: ports/108119
Submitted by: trasz (maintainer)
Notes
Notes:
svn path=/head/; revision=182962
Diffstat (limited to 'audio/liblo')
-rw-r--r-- | audio/liblo/Makefile | 1 | ||||
-rw-r--r-- | audio/liblo/files/patch-src-server.c | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/audio/liblo/Makefile b/audio/liblo/Makefile index ac1efc74b965..40c3b83d68a0 100644 --- a/audio/liblo/Makefile +++ b/audio/liblo/Makefile @@ -7,6 +7,7 @@ PORTNAME= liblo PORTVERSION= 0.23 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= liblo diff --git a/audio/liblo/files/patch-src-server.c b/audio/liblo/files/patch-src-server.c new file mode 100644 index 000000000000..c17f88f9de95 --- /dev/null +++ b/audio/liblo/files/patch-src-server.c @@ -0,0 +1,43 @@ +--- src/server.c.orig Thu Jan 26 16:00:28 2006 ++++ src/server.c Fri Jan 19 13:56:05 2007 +@@ -639,38 +639,11 @@ + + //inet_ntop(s->addr.ss_family, &s->addr.padding, hostname, sizeof(hostname)); + if (s->protocol == LO_UDP) { +- err = getnameinfo((struct sockaddr *)&s->addr, sizeof(s->addr), ++ err = getnameinfo((struct sockaddr *)&s->addr, s->addr.ss_len, + hostname, sizeof(hostname), portname, sizeof(portname), + NI_NUMERICHOST | NI_NUMERICSERV); + if (err) { +- switch (err) { +- case EAI_AGAIN: +- lo_throw(s, err, "Try again", path); +- break; +- case EAI_BADFLAGS: +- lo_throw(s, err, "Bad flags", path); +- break; +- case EAI_FAIL: +- lo_throw(s, err, "Failed", path); +- break; +- case EAI_FAMILY: +- lo_throw(s, err, "Cannot resolve address family", path); +- break; +- case EAI_MEMORY: +- lo_throw(s, err, "Out of memory", path); +- break; +- case EAI_NONAME: +- lo_throw(s, err, "Cannot resolve", path); +- break; +-#ifndef WIN32 +- case EAI_SYSTEM: +- lo_throw(s, err, strerror(err), path); +- break; +-#endif +- default: +- lo_throw(s, err, "Unknown error", path); +- break; +- } ++ lo_throw(s, err, gai_strerror(err), path); + + return; + } |