diff --git a/Psychtoolbox/PsychHardware/iViewXToolbox/tcp_udp_ip/pnet.c b/Psychtoolbox/PsychHardware/iViewXToolbox/tcp_udp_ip/pnet.c index 7141a678c..05780df4a 100644 --- a/Psychtoolbox/PsychHardware/iViewXToolbox/tcp_udp_ip/pnet.c +++ b/Psychtoolbox/PsychHardware/iViewXToolbox/tcp_udp_ip/pnet.c @@ -80,6 +80,9 @@ #define close(s) closesocket(s) #define nonblockingsocket(s) {unsigned long ctl = 1;ioctlsocket( s, FIONBIO, &ctl );} #define s_errno WSAGetLastError() +#ifdef EWOULDBLOCK /* MK: Undefine if defined, to avoid compiler warning on Octave + Windows MinGW compile */ +#undef EWOULDBLOCK +#endif #define EWOULDBLOCK WSAEWOULDBLOCK #define usleep(a) Sleep((a)/1000) #define MSG_NOSIGNAL 0