File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
storage/ndb/include/portlib Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 437437#define HAVE_FCNTL_H 1
438438#define HAVE_GETADDRINFO 1
439439#define HAVE_INTTYPES_H 1
440- /* libevent's select.c is not Windows compatible */
441- #ifndef _WIN32
442- #define HAVE_SELECT 1
443- #endif
444440#define HAVE_SIGNAL_H 1
445441#define HAVE_STDARG_H 1
446442#define HAVE_STDINT_H 1
Original file line number Diff line number Diff line change 2727
2828#include <ndb_global.h>
2929
30+ #ifdef HAVE_SYS_SELECT_H
31+ #include <sys/select.h>
32+ #endif
33+
3034static inline void NdbSleep_MilliSleep (int milliseconds );
3135
3236static inline
@@ -80,13 +84,11 @@ void NdbSleep_MilliSleep(int milliseconds)
8084{
8185#ifdef _WIN32
8286 Sleep (milliseconds );
83- #elif defined( HAVE_SELECT )
87+ #else
8488 struct timeval t ;
8589 t .tv_sec = milliseconds / 1000L ;
8690 t .tv_usec = (milliseconds % 1000L ) * 1000L ;
8791 select (0 ,0 ,0 ,0 ,& t );
88- #else
89- #error No suitable function found to implement millisecond sleep.
9092#endif
9193}
9294
You can’t perform that action at this time.
0 commit comments