Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/libwebsockets: Add support for unix-domain-sockets
@ 2020-06-12 11:31 Heiko Stuebner
  2020-06-14  8:21 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Heiko Stuebner @ 2020-06-12 11:31 UTC (permalink / raw)
  To: buildroot

From: Martin Elshuber <martin.elshuber@theobroma-systems.com>

libwebsockets allows the usage of unix-domain-sockets since 2016,
so add an option to enable its usage.

Signed-off-by: Martin Elshuber <martin.elshuber@theobroma-systems.com>
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
---
 package/libwebsockets/Config.in        | 4 ++++
 package/libwebsockets/libwebsockets.mk | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/package/libwebsockets/Config.in b/package/libwebsockets/Config.in
index 2b350bf389..78a659fd35 100644
--- a/package/libwebsockets/Config.in
+++ b/package/libwebsockets/Config.in
@@ -8,3 +8,7 @@ config BR2_PACKAGE_LIBWEBSOCKETS
 	  in both directions.
 
 	  http://libwebsockets.org/
+
+config BR2_PACKAGE_LIBWEBSOCKETS_INCLUDE_UNIX_SOCK
+       bool "include support for unix-sockets"
+       depends on BR2_PACKAGE_LIBWEBSOCKETS
diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk
index dedd03347d..3f6ab1408d 100644
--- a/package/libwebsockets/libwebsockets.mk
+++ b/package/libwebsockets/libwebsockets.mk
@@ -59,4 +59,8 @@ ifeq ($(BR2_SHARED_LIBS),y)
 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_STATIC=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS_INCLUDE_UNIX_SOCK),y)
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_UNIX_SOCK=ON
+endif
+
 $(eval $(cmake-package))
-- 
2.26.2

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-12 11:31 [Buildroot] [PATCH] package/libwebsockets: Add support for unix-domain-sockets Heiko Stuebner
2020-06-14  8:21 ` Yann E. MORIN

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