mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01: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:
@@ -0,0 +1,20 @@
|
||||
--- 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);
|
||||
}
|
||||
Reference in New Issue
Block a user