mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-28 13:09:11 -05:00
[configure] Change so we enable/disable websockets based on libwebsockets >= 2.0.2 presence
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
#ifdef HAVE_SPOTIFY_H
|
||||
# include "spotify.h"
|
||||
#endif
|
||||
#ifdef WEBSOCKET
|
||||
#ifdef HAVE_LIBWEBSOCKETS
|
||||
# include "websocket.h"
|
||||
#endif
|
||||
|
||||
@@ -1526,7 +1526,7 @@ httpd_init(void)
|
||||
goto jsonapi_fail;
|
||||
}
|
||||
|
||||
#ifdef WEBSOCKET
|
||||
#ifdef HAVE_LIBWEBSOCKETS
|
||||
ret = websocket_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -1647,7 +1647,7 @@ httpd_init(void)
|
||||
#endif
|
||||
pipe_fail:
|
||||
streaming_deinit();
|
||||
#ifdef WEBSOCKET
|
||||
#ifdef HAVE_LIBWEBSOCKETS
|
||||
websocket_deinit();
|
||||
#endif
|
||||
websocket_fail:
|
||||
@@ -1699,7 +1699,7 @@ httpd_deinit(void)
|
||||
}
|
||||
|
||||
streaming_deinit();
|
||||
#ifdef WEBSOCKET
|
||||
#ifdef HAVE_LIBWEBSOCKETS
|
||||
websocket_deinit();
|
||||
#endif
|
||||
jsonapi_deinit();
|
||||
|
||||
Reference in New Issue
Block a user