diff --git a/ixwebsocket/IXSocket.cpp b/ixwebsocket/IXSocket.cpp index 42854e05..1b676905 100644 --- a/ixwebsocket/IXSocket.cpp +++ b/ixwebsocket/IXSocket.cpp @@ -45,9 +45,9 @@ namespace ix } #ifdef __linux__ - int nfds = 2; + constexpr int nfds = 2; #else - int nfds = 1; + constexpr int nfds = 1; #endif struct pollfd fds[nfds];