mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
liblo: disable tests and enable IPv6
Speeds up compilation. Also fixed compilation without deprecated POSIX APIs. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
15
libs/liblo/patches/010-index.patch
Normal file
15
libs/liblo/patches/010-index.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
--- a/src/server.c
|
||||
+++ b/src/server.c
|
||||
@@ -2006,11 +2006,8 @@ static void dispatch_method(lo_server s, const char *path,
|
||||
|
||||
tmp = (char*) malloc(strlen(it->path + len) + 1);
|
||||
strcpy(tmp, it->path + len);
|
||||
-#if defined(WIN32) || defined(_MSC_VER)
|
||||
sec = strchr(tmp, '/');
|
||||
-#else
|
||||
- sec = index(tmp, '/');
|
||||
-#endif
|
||||
+
|
||||
if (sec)
|
||||
*sec = '\0';
|
||||
slend = sl;
|
||||
Reference in New Issue
Block a user