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:
@@ -62,7 +62,7 @@ public:
|
|||||||
virtual void UpdateBlockingState() wxOVERRIDE
|
virtual void UpdateBlockingState() wxOVERRIDE
|
||||||
{
|
{
|
||||||
// Make this int and not bool to allow passing it to ioctl().
|
// 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);
|
ioctl(m_fd, FIONBIO, &isBlocking);
|
||||||
|
|
||||||
DoEnableEvents(wxSOCKET_INPUT_FLAG | wxSOCKET_OUTPUT_FLAG, !isBlocking);
|
DoEnableEvents(wxSOCKET_INPUT_FLAG | wxSOCKET_OUTPUT_FLAG, !isBlocking);
|
||||||
|
Reference in New Issue
Block a user