Skip to content
Snippets Groups Projects
Commit ef34431d authored by Constantin Papizh's avatar Constantin Papizh
Browse files

Win build fixes

parent 2d5e4176
No related branches found
No related tags found
1 merge request!8Win build fixes
......@@ -27,6 +27,8 @@
#define EPOLL_HANDLE int
#else
#define EPOLL_HANDLE HANDLE
#define MSG_DONTWAIT 0
#define MSG_NOSIGNAL 0
#include "wepoll.h"
#endif
......
......@@ -36,7 +36,6 @@
#include <mswsock.h>
#include <ws2tcpip.h>
#include <io.h>
//#include "wrappers.h"
#include <pthread.h>
#endif
......
......@@ -59,7 +59,6 @@
#include <mswsock.h>
#include <ws2tcpip.h>
#include <io.h>
#include "wrappers.h"
#include <pthread.h>
#endif
......
......@@ -50,7 +50,6 @@
#include <windows.h>
#include <mswsock.h>
#include <ws2tcpip.h>
#include "wrappers.h"
#include <io.h>
#include <pthread.h>
#endif
......@@ -642,12 +641,13 @@ void *thread_loop( void *arg )
}
dap_cur->last_time_active = cur_time;
if( events[i].events & EPOLLERR ) {
log_it( L_ERROR,"Socket error: %u, remove it" , dap_cur->socket );
dap_cur->flags |= DAP_SOCK_SIGNAL_CLOSE;
}
#ifdef _WIN32
set_nonblock_socket(dap_cur->socket); // pconst: for winsock2 has no appropriate MSG attributes
#endif
if ( !(dap_cur->flags & DAP_SOCK_SIGNAL_CLOSE) || dap_cur->no_close )
read_write_cb( dap_cur, events[i].events );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment