diff options
Diffstat (limited to 'PICA_common.h')
| -rw-r--r-- | PICA_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/PICA_common.h b/PICA_common.h index bc95be1..dd92b32 100644 --- a/PICA_common.h +++ b/PICA_common.h @@ -4,9 +4,11 @@ #ifdef WIN32 #define CLOSE closesocket #define SHUTDOWN(s) shutdown(s,SD_BOTH) +#define IOCTLSETNONBLOCKINGSOCKET(s, arg) ioctlsocket(s, FIONBIO, (unsigned long*)(arg)) #else #define CLOSE close #define SHUTDOWN(s) shutdown(s,SHUT_RDWR) +#define IOCTLSETNONBLOCKINGSOCKET(s, arg) ioctl(s, FIONBIO, (int*)(arg)) #endif #ifdef WIN32 |
