[Buildroot] [PATCH 1/2] package/libmicrohttpd: fix pthread detection

Bernd Kuhls bernd.kuhls at t-online.de
Tue Mar 24 21:00:40 UTC 2020


Fixes:
http://autobuild.buildroot.net/results/ceb802eea0fee5812efd717ae4cdbd9673d9507e/

Quoted from config.log:
conftest.c:32:26: error: #error "_REENTRANT must be defined"

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
 package/libmicrohttpd/libmicrohttpd.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/libmicrohttpd/libmicrohttpd.mk b/package/libmicrohttpd/libmicrohttpd.mk
index f47d7ec214..2f5c28cd58 100644
--- a/package/libmicrohttpd/libmicrohttpd.mk
+++ b/package/libmicrohttpd/libmicrohttpd.mk
@@ -22,4 +22,7 @@ LIBMICROHTTPD_LICENSE = LGPL-2.1+ or eCos
 LIBMICROHTTPD_CONF_OPTS += --disable-https
 endif
 
+# fixes pthreads detection
+LIBMICROHTTPD_CFLAGS += -D_REENTRANT
+
 $(eval $(autotools-package))
-- 
2.25.0



More information about the buildroot mailing list