Skip to content

Commit e94e0f7

Browse files
committed
Merge branch 'mysql-5.6-cluster-7.4' into mysql-5.7-cluster-7.5
Change-Id: I334f640da2ffc2db6c580fa6dd8e36e69f8912b5
2 parents 636f439 + cb64f2c commit e94e0f7

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

config.h.cmake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,6 @@
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

storage/ndb/include/portlib/NdbSleep.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727

2828
#include <ndb_global.h>
2929

30+
#ifdef HAVE_SYS_SELECT_H
31+
#include <sys/select.h>
32+
#endif
33+
3034
static inline void NdbSleep_MilliSleep(int milliseconds);
3135

3236
static 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

0 commit comments

Comments
 (0)