aboutsummaryrefslogtreecommitdiffstats
path: root/audio/liblo
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-01-22 16:31:18 +0800
committermiwi <miwi@FreeBSD.org>2007-01-22 16:31:18 +0800
commitf33b0db87f6e8b6cadfb8a7f68704de6650b9445 (patch)
tree10d43506bb5ccc7a704a8379cae143be1c423447 /audio/liblo
parenta8d867083ff8fc866025ba04d2119428a3bd4966 (diff)
downloadfreebsd-ports-gnome-f33b0db87f6e8b6cadfb8a7f68704de6650b9445.tar.gz
freebsd-ports-gnome-f33b0db87f6e8b6cadfb8a7f68704de6650b9445.tar.zst
freebsd-ports-gnome-f33b0db87f6e8b6cadfb8a7f68704de6650b9445.zip
- Fix problem that made it impossible to use GUI for DSSI modules.
PR: ports/108119 Submitted by: trasz (maintainer)
Diffstat (limited to 'audio/liblo')
-rw-r--r--audio/liblo/Makefile1
-rw-r--r--audio/liblo/files/patch-src-server.c43
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;
+ }