From 00d113c3416bafe09f265e38aed4fe6957cd9a75 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 19 Dec 2019 18:36:22 +0100 Subject: [PATCH] Fix wxSocketImplUnix compilation under OpenVMS Don't pass "const void*" pointer to ioctl(), it seems to be declared as taking "void*" on this platform and so doesn't accept it. --- include/wx/unix/private/sockunix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/unix/private/sockunix.h b/include/wx/unix/private/sockunix.h index f07ecafd87..0c220e3148 100644 --- a/include/wx/unix/private/sockunix.h +++ b/include/wx/unix/private/sockunix.h @@ -62,7 +62,7 @@ public: virtual void UpdateBlockingState() wxOVERRIDE { // Make this int and not bool to allow passing it to ioctl(). - const int isBlocking = (GetSocketFlags() & wxSOCKET_BLOCK) != 0; + int isBlocking = (GetSocketFlags() & wxSOCKET_BLOCK) != 0; ioctl(m_fd, FIONBIO, &isBlocking); DoEnableEvents(wxSOCKET_INPUT_FLAG | wxSOCKET_OUTPUT_FLAG, !isBlocking);