mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
libshout: update to 2.4.5
Remove upstreamed patch. Switch to AUTORELEASE for simplicity. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
--- a/examples/nonblocking.c
|
||||
+++ b/examples/nonblocking.c
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <shout/shout.h>
|
||||
@@ -70,8 +71,10 @@ int main()
|
||||
if (ret == SHOUTERR_BUSY)
|
||||
printf("Connection pending...\n");
|
||||
|
||||
+ const struct timespec req = {0, 10 * 1000 * 1000};
|
||||
+ struct timespec rem;
|
||||
while (ret == SHOUTERR_BUSY) {
|
||||
- usleep(10000);
|
||||
+ nanosleep(&req, &rem);
|
||||
ret = shout_get_connected(shout);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user