From: Michael Tremer Date: Wed, 9 Oct 2024 15:34:43 +0000 (+0000) Subject: configure: Correctly define CURL_HAS_WEBSOCKETS X-Git-Tag: 0.9.30~1104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=587e92ba20d23ef2e15e5bcc69cc98661f6c6664;p=pakfire.git configure: Correctly define CURL_HAS_WEBSOCKETS Signed-off-by: Michael Tremer --- diff --git a/configure.ac b/configure.ac index ac0362b2f..95db656a6 100644 --- a/configure.ac +++ b/configure.ac @@ -324,6 +324,8 @@ if test "$CURL_CONFIG" != ""; then CURL_PROTOCOLS=$($CURL_CONFIG --protocols) if echo "$CURL_PROTOCOLS" | grep -qw "WSS"; then + AC_DEFINE(CURL_HAS_WEBSOCKETS, [1], [cURL has WebSocket Support]) + AC_MSG_RESULT([yes]) CURL_HAS_WEBSOCKETS=yes else @@ -334,8 +336,6 @@ else AC_MSG_ERROR([curl-config not found]) fi -# Set up a variable for later use -AC_SUBST(CURL_HAS_WEBSOCKETS) AM_CONDITIONAL(CURL_HAS_WEBSOCKETS, [test "x$CURL_HAS_WEBSOCKETS" = "xyes"]) AC_DEFINE_UNQUOTED([PAKFIRE_CONFIG_DIR], ["${sysconfdir}/${PACKAGE_NAME}"], diff --git a/src/cli/pakfire-daemon.c b/src/cli/pakfire-daemon.c index 85763de20..e0d1f094d 100644 --- a/src/cli/pakfire-daemon.c +++ b/src/cli/pakfire-daemon.c @@ -22,6 +22,7 @@ #include #include +#include #include "lib/command.h" #include "lib/daemon.h"