Make select work for MS Windows.
This commit was SVN r14845.
Этот коммит содержится в:
родитель
0961669912
Коммит
90b99e5344
@ -42,7 +42,9 @@
|
||||
#endif
|
||||
#include <sys/queue.h>
|
||||
#include <sys/tree.h>
|
||||
#ifndef __WINDOWS__
|
||||
#include <signal.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -73,6 +75,11 @@ extern opal_mutex_t opal_event_lock;
|
||||
extern volatile sig_atomic_t opal_evsignal_caught;
|
||||
#endif
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
#define NFDBITS 32
|
||||
int fd_mask;
|
||||
#endif
|
||||
|
||||
struct selectop {
|
||||
int event_fds; /* Highest fd in fd set */
|
||||
int event_fdsz;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user