All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libeXosip2: fix build without threads
@ 2020-03-11 19:52 Fabrice Fontaine
  2020-03-21 14:05 ` Gilles Talis
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2020-03-11 19:52 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/7b5f049fda390a7961b5a7fde42ea5aebe1f7564

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...c-eXconf.c-fix-build-without-threads.patch | 43 +++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 package/libeXosip2/0001-src-eXconf.c-fix-build-without-threads.patch

diff --git a/package/libeXosip2/0001-src-eXconf.c-fix-build-without-threads.patch b/package/libeXosip2/0001-src-eXconf.c-fix-build-without-threads.patch
new file mode 100644
index 0000000000..faaec5b377
--- /dev/null
+++ b/package/libeXosip2/0001-src-eXconf.c-fix-build-without-threads.patch
@@ -0,0 +1,43 @@
+From 618bd5edee8b1a93fbdf9e4a838e3c9cefcce6a7 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Wed, 11 Mar 2020 20:43:48 +0100
+Subject: [PATCH] src/eXconf.c: fix build without threads
+
+Fix the following build failure without threads:
+
+eXconf.c:812:49: error: 'struct eXosip_t' has no member named 'j_socketctl_event'
+     ev.data.fd = jpipe_get_read_descr (excontext->j_socketctl_event);
+                                                 ^~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/7b5f049fda390a7961b5a7fde42ea5aebe1f7564
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://savannah.nongnu.org/bugs/index.php?57985]
+---
+ src/eXconf.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/eXconf.c b/src/eXconf.c
+index baf90be..cf8b4f7 100644
+--- a/src/eXconf.c
++++ b/src/eXconf.c
+@@ -807,6 +807,7 @@ eXosip_init (struct eXosip_t *excontext)
+       return OSIP_UNDEFINED_ERROR;
+     }
+     
++#ifndef OSIP_MONOTHREAD 
+     memset(&ev, 0, sizeof(struct epoll_event));
+     ev.events = EPOLLIN;
+     ev.data.fd = jpipe_get_read_descr (excontext->j_socketctl_event);
+@@ -815,6 +816,7 @@ eXosip_init (struct eXosip_t *excontext)
+       _eXosip_closesocket (excontext->epfdctl);
+       return OSIP_UNDEFINED_ERROR;
+     }
++#endif
+   }
+ #endif
+   
+-- 
+2.25.1
+
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-21 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 19:52 [Buildroot] [PATCH 1/1] package/libeXosip2: fix build without threads Fabrice Fontaine
2020-03-21 14:05 ` Gilles Talis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.