LibVNC / libvncserver

LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
GNU General Public License v2.0
1.08k stars 483 forks source link

error: ‘nonBlocking’ undeclared (first use in this function); did you mean ‘non_blocking’? #535

Closed Masterxilo closed 1 year ago

Masterxilo commented 1 year ago

https://github.com/LibVNC/libvncserver/blob/master/common/sockets.c

/mnt/c/Users/windows/libvncserver/common/sockets.c:34:25: error: ‘nonBlocking’ undeclared (first use in this function); did you mean ‘non_blocking’?
   34 |   unsigned long block = nonBlocking ? 0 : 1;
      |                         ^~~~~~~~~~~
      |                         non_blocking
rfbBool sock_set_nonblocking(rfbSocket sock, rfbBool non_blocking, void (*log)(const char *format, ...))
{
#ifdef WIN32
  unsigned long block = nonBlocking ? 0 : 1;
  if(ioctlsocket(sock, FIONBIO, &block) == SOCKET_ERROR) {
    errno=WSAGetLastError();

enough said. I already have a fork so cannot create PR. Thanks for the fix.