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.
This commit is contained in:
parent
d90953d8c6
commit
00d113c341
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user