MSVC porting fixes.
This commit is contained in:
parent
6ca75f8bb7
commit
191a91d44a
|
@ -45,8 +45,11 @@
|
|||
# include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#if defined(__MINGW32__) || defined (_MSC_VER)
|
||||
#include "winsock2.h"
|
||||
#ifndef MSG_WAITALL
|
||||
#define MSG_WAITALL 0
|
||||
#endif
|
||||
#else
|
||||
#define closesocket close
|
||||
#endif /* __MINGW32__ */
|
||||
|
|
Loading…
Reference in New Issue