PKG_NAME:=liblo
PKG_VERSION:=0.30
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/liblo
DEPENDS:= +liblo
endef
+CONFIGURE_ARGS += \
+ $(if $(CONFIG_IPV6),--enable,--disable)-ipv6 \
+ --enable-threads \
+ --disable-examples \
+ --disable-network-tests \
+ --disable-tests
+
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/lo $(1)/usr/include/
--- /dev/null
+--- 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;
--- /dev/null
+--- a/src/tools/oscsendfile.c
++++ b/src/tools/oscsendfile.c
+@@ -354,7 +354,7 @@ int send_file(lo_address target, double speed) {
+ lo_timetag_now(&tt_now);
+ double wait_time = timetag_diff(*tt_last, tt_now);
+ if (wait_time > 0.) {
+- usleep(wait_time * 1000000);
++ sleep(wait_time);
+ }
+ if (b) {
+ ret = lo_send_bundle(target, b);
+@@ -376,7 +376,7 @@ int send_file(lo_address target, double speed) {
+ lo_timetag_now(&tt_now);
+ double wait_time = timetag_diff(*tt_last, tt_now);
+ if (wait_time > 0.) {
+- usleep(wait_time * 1000000);
++ sleep(wait_time);
+ }
+ lo_send_bundle(target, b);
+ }