Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libuhttpd: fix build without dlopen
@ 2020-10-25 16:43 Fabrice Fontaine
  2020-10-26  7:25 ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2020-10-25 16:43 UTC (permalink / raw)
  To: buildroot

Fix build of libuhttpd in version 3.4.0 without dlopen

Fixes:
 - http://autobuild.buildroot.org/results/b2bbd0681705b94e6b531996b39f62e47f089c92

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

diff --git a/package/libuhttpd/0001-src-uhttpd.c-fix-build-without-dlopen.patch b/package/libuhttpd/0001-src-uhttpd.c-fix-build-without-dlopen.patch
new file mode 100644
index 0000000000..966041028b
--- /dev/null
+++ b/package/libuhttpd/0001-src-uhttpd.c-fix-build-without-dlopen.patch
@@ -0,0 +1,35 @@
+From 0b2058e7c96a3d8d994d572116ad7b950766347b Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Fri, 16 Oct 2020 21:39:47 +0200
+Subject: [PATCH] src/uhttpd.c: fix build without dlopen
+
+Build without dlopen fails on:
+
+/data/buildroot-test/instance-0/output-1/build/libuhttpd-3.4.0/src/uhttpd.c:45:23: error: unused variable 'p' [-Werror=unused-variable]
+     struct uh_plugin *p = srv->plugins;
+                       ^
+
+Fixes:
+ - http://autobuild.buildroot.org/results/b2bbd0681705b94e6b531996b39f62e47f089c92
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved from:
+https://github.com/zhaojh329/libuhttpd/commit/0b2058e7c96a3d8d994d572116ad7b950766347b]
+---
+ src/uhttpd.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/uhttpd.c b/src/uhttpd.c
+index dad3646..a37c136 100644
+--- a/src/uhttpd.c
++++ b/src/uhttpd.c
+@@ -42,7 +42,9 @@ void conn_free(struct uh_connection *conn);
+ static void uh_server_free(struct uh_server *srv)
+ {
+     struct uh_connection *conn = srv->conns;
++#ifdef HAVE_DLOPEN
+     struct uh_plugin *p = srv->plugins;
++#endif
+ 
+     ev_io_stop(srv->loop, &srv->ior);
+ 
-- 
2.28.0

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

end of thread, other threads:[~2020-10-26 22:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-25 16:43 [Buildroot] [PATCH 1/1] package/libuhttpd: fix build without dlopen Fabrice Fontaine
2020-10-26  7:25 ` Yann E. MORIN
2020-10-26 22:54   ` Fabrice Fontaine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox