@@ -19,6 +19,12 @@ config BR2_PACKAGE_LIBWEBSOCKETS_EXT_POLL
unconditionally compiled in for library versions
prior to 3.2.0.
+config BR2_PACKAGE_LIBWEBSOCKETS_ASYNC_DNS
+ bool "enable async dns support"
+ help
+ Enable asynchronous DNS resolver that directly queries
+ the configured nameserver over UDP, from the event loop.
+
endif
comment "libwebsockets needs a toolchain w/ dynamic library"
@@ -98,4 +98,8 @@ ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS_EXT_POLL),y)
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_EXTERNAL_POLL=ON
endif
+ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS_ASYNC_DNS),y)
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SYS_ASYNC_DNS=ON
+endif
+
$(eval $(cmake-package))