From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/libeXosip2: fix build without threads
Date: Wed, 11 Mar 2020 20:52:55 +0100 [thread overview]
Message-ID: <20200311195255.115690-1-fontaine.fabrice@gmail.com> (raw)
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
next reply other threads:[~2020-03-11 19:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-11 19:52 Fabrice Fontaine [this message]
2020-03-21 14:05 ` [Buildroot] [PATCH 1/1] package/libeXosip2: fix build without threads Gilles Talis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200311195255.115690-1-fontaine.fabrice@gmail.com \
--to=fontaine.fabrice@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.