mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Fix Unix compile with older libwebsockets
Debian/Ubuntu still only ship libwebsockets 2.x. Recent libWS abstracts the poll interface to be compatible with Windows.
This commit is contained in:
parent
d7ef188aea
commit
7fdc35bb45
1 changed files with 15 additions and 0 deletions
|
|
@ -23,6 +23,21 @@
|
|||
#include "server.h"
|
||||
#include "dispatcher.h"
|
||||
|
||||
/* backport from libwebsockets 3.0,
|
||||
* allow to compile on GNU/Linux with libwebsockets 2.x
|
||||
*/
|
||||
#ifndef PLATFORM_WINDOWS
|
||||
# ifndef LWS_POLLHUP
|
||||
# define LWS_POLLHUP (POLLHUP|POLLERR)
|
||||
# endif
|
||||
# ifndef LWS_POLLIN
|
||||
# define LWS_POLLIN (POLLIN)
|
||||
# endif
|
||||
# ifndef LWS_POLLOUT
|
||||
# define LWS_POLLOUT (POLLOUT)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
using namespace Glib;
|
||||
|
||||
WebsocketsServer::WebsocketsServer (ArdourSurface::ArdourWebsockets& surface)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue