202 +#include <sys/types.h> |
202 +#include <sys/types.h> |
203 +#include <sys/socket.h> |
203 +#include <sys/socket.h> |
204 |
204 |
205 #include <expat.h> |
205 #include <expat.h> |
206 |
206 |
|
207 diff -Nau mu-conference-0.8.81/src/main.c.orig mu-conference-0.8.81/src/main.c |
|
208 Index: mu-conference-0.8.81/src/main.c |
|
209 --- mu-conference-0.8.81/src/main.c.orig 2013-07-01 00:12:58.147291969 +0200 |
|
210 +++ mu-conference-0.8.81/src/main.c 2013-06-30 23:15:28.653657696 +0200 |
|
211 @@ -51,7 +51,7 @@ |
|
212 |
|
213 jcr = (jcr_instance)calloc(1, sizeof(_jcr_instance)); |
|
214 |
|
215 - g_thread_init(NULL); |
|
216 + g_thread_init_glib(NULL); |
|
217 fprintf(stderr, "%s -- %s\n%s\n\n", _JCOMP_NAME, _JCOMP_VERS, _JCOMP_COPY); |
|
218 |
|
219 while ((c = getopt(argc, argv, "Bshd:c:")) != EOF) |
|
220 diff -Nau mu-conference-0.8.81/src/jcomp/jcr_deliver.c.orig mu-conference-0.8.81/src/jcomp/jcr_deliver.c |
|
221 Index: mu-conference-0.8.81/src/jcomp/jcr_deliver.c |
|
222 --- mu-conference-0.8.81/src/jcomp/jcr_deliver.c.orig 2013-06-14 21:42:45.000000000 +0200 |
|
223 +++ mu-conference-0.8.81/src/jcomp/jcr_deliver.c 2013-07-01 03:13:46.888580626 +0200 |
|
224 @@ -33,11 +33,11 @@ |
|
225 sleep(1); |
|
226 } |
|
227 |
|
228 - g_async_queue_push(jcr->dqueue, d); |
|
229 log_debug(JDBG, "queued %lu bytes now %lu msgs : >>> %s <<<", |
|
230 strlen(xmlnode2str(d->x)), |
|
231 g_async_queue_length(jcr->dqueue), |
|
232 xmlnode2str(d->x)); |
|
233 + g_async_queue_push(jcr->dqueue, d); |
|
234 } |
|
235 |
|
236 void jcr_queue_deliver(void *a) { |