[130561] trunk/dports/devel/lua-luasocket
jeremyhu at macports.org
jeremyhu at macports.org
Thu Jan 1 01:21:53 PST 2015
Revision: 130561
https://trac.macports.org/changeset/130561
Author: jeremyhu at macports.org
Date: 2015-01-01 01:21:53 -0800 (Thu, 01 Jan 2015)
Log Message:
-----------
lua-luasocket: Build fix for Leopard
Modified Paths:
--------------
trunk/dports/devel/lua-luasocket/Portfile
Added Paths:
-----------
trunk/dports/devel/lua-luasocket/files/patch-src-udp.c.diff
trunk/dports/devel/lua-luasocket/files/patch-src-usocket.c.diff
Modified: trunk/dports/devel/lua-luasocket/Portfile
===================================================================
--- trunk/dports/devel/lua-luasocket/Portfile 2015-01-01 08:39:06 UTC (rev 130560)
+++ trunk/dports/devel/lua-luasocket/Portfile 2015-01-01 09:21:53 UTC (rev 130561)
@@ -33,7 +33,9 @@
#livecheck.url http://luaforge.net/frs/?group_id=23
#livecheck.regex {luasocket-([0-9.]+)\.tar\.gz}
-patchfiles patch-Makefiles.diff
+patchfiles patch-Makefiles.diff \
+ patch-src-usocket.c.diff \
+ patch-src-udp.c.diff
use_configure no
Added: trunk/dports/devel/lua-luasocket/files/patch-src-udp.c.diff
===================================================================
--- trunk/dports/devel/lua-luasocket/files/patch-src-udp.c.diff (rev 0)
+++ trunk/dports/devel/lua-luasocket/files/patch-src-udp.c.diff 2015-01-01 09:21:53 UTC (rev 130561)
@@ -0,0 +1,14 @@
+--- src/udp.c.orig 2015-01-01 01:20:17.000000000 -0800
++++ src/udp.c 2015-01-01 01:21:09.000000000 -0800
+@@ -174,7 +174,10 @@ static int meth_sendto(lua_State *L) {
+ memset(&aihint, 0, sizeof(aihint));
+ aihint.ai_family = udp->family;
+ aihint.ai_socktype = SOCK_DGRAM;
+- aihint.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV;
++ aihint.ai_flags = AI_NUMERICHOST;
++#ifdef AI_NUMERICSERV
++ aihint.ai_flags |= AI_NUMERICSERV;
++#endif
+ err = getaddrinfo(ip, port, &aihint, &ai);
+ if (err) {
+ lua_pushnil(L);
Added: trunk/dports/devel/lua-luasocket/files/patch-src-usocket.c.diff
===================================================================
--- trunk/dports/devel/lua-luasocket/files/patch-src-usocket.c.diff (rev 0)
+++ trunk/dports/devel/lua-luasocket/files/patch-src-usocket.c.diff 2015-01-01 09:21:53 UTC (rev 130561)
@@ -0,0 +1,12 @@
+--- src/usocket.c.orig 2015-01-01 01:18:14.000000000 -0800
++++ src/usocket.c 2015-01-01 01:18:31.000000000 -0800
+@@ -436,7 +436,9 @@ const char *socket_gaistrerror(int err)
+ case EAI_MEMORY: return "memory allocation failure";
+ case EAI_NONAME:
+ return "host or service not provided, or not known";
++#ifdef EAI_OVERFLOW
+ case EAI_OVERFLOW: return "argument buffer overflow";
++#endif
+ #ifdef EAI_PROTOCOL
+ case EAI_PROTOCOL: return "resolved protocol is unknown";
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150101/76c5ce4a/attachment.html>
More information about the macports-changes
mailing list