mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Fix for older Windows (7 and below) / VC
This commit is contained in:
1 parent
e6c3427cab
commit
6b61cfde4c
4 files changed
+8
-7
No files matched your search
+2
-1
@@ -153,6 +153,7 @@ int start_proxy_thread(struct child * chp){
|
||||
pthread_t thread;
|
||||
#ifdef _WIN32
|
||||
HANDLE h;
|
||||
DWORD num;
|
||||
#endif
|
||||
char r[1];
|
||||
|
||||
@@ -171,7 +172,7 @@ int start_proxy_thread(struct child * chp){
|
||||
pthread_attr_destroy(&pa);
|
||||
#endif
|
||||
#ifdef _WIN32
|
||||
ReadFile(conf.threadinit[0], r, 1, NULL, NULL);
|
||||
ReadFile(conf.threadinit[0], r, 1, &num, NULL);
|
||||
#else
|
||||
while(read(conf.threadinit[0], r, 1) !=1) if(errno != EINTR) {
|
||||
fprintf(stderr, "pipe failed\n");
|
||||
|
||||
Reference in new issue
Block a user