cannelloni: needs dynamic library
[buildroot-gz.git] / package / libwebsock / 0002-fix-ssl.patch
blob51b9b368250e6c754556691287c14afe409421a8
1 config: fix SSL detection
3 The @WEBSOCK_HAVE_SSL@ is not replaced at configure time, and even if
4 it was, it would be replaced by an empty string if openssl is disabled,
5 thus still defining WEBSOCK_HAVE_SSL when we would not want it.
7 Instead, rely on config.h, which is properly generated by ./configure,
8 to provide the information about whether openssl is enabled or not.
10 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
12 diff -durN a/src/websock_config.h.in b/src/websock_config.h.in
13 --- a/src/websock_config.h.in
14 +++ b/src/websock_config.h.in
15 @@ -1,9 +1,10 @@
16 #ifndef WEBSOCK_CONFIG_H
17 #define WEBSOCK_CONFIG_H 1
19 +#include "config.h"
21 #define WEBSOCK_PACKAGE_STRING @WEBSOCK_PACKAGE_STRING@
22 #define WEBSOCK_PACKAGE_VERSION @WEBSOCK_PACKAGE_VERSION@
23 #define WEBSOCK_PACKAGE_NAME @WEBSOCK_PACKAGE_NAME@
24 -#define WEBSOCK_HAVE_SSL @WEBSOCK_HAVE_SSL@
26 #endif