diff options
author | unknown <msvensson@neptunus.(none)> | 2006-02-27 10:08:35 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-02-27 10:08:35 +0100 |
commit | b97082c5836a48ff792183c555dcc3f41f0d5453 (patch) | |
tree | 0953147a10e2c3f512aacbad54ca5e0c15ca6633 /include/my_global.h | |
parent | 3dea6246e705657b890d9339b236b266819f9bfe (diff) | |
download | mariadb-git-b97082c5836a48ff792183c555dcc3f41f0d5453.tar.gz |
Bug#17716 Slave crash in net_clear on qnx
- Set FD_SETSIZE before including "sys/select.h"
include/my_global.h:
Define FD_SETSIZE on QNX before including "sys/select.h" or "sys/time.h". This defines number of bits in fd_set type used for 'select'
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h index 0df9ac78eb2..969617c084b 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -43,6 +43,15 @@ #define HAVE_ERRNO_AS_DEFINE #endif /* __CYGWIN__ */ +#if defined(__QNXNTO__) && !defined(FD_SETSIZE) +#define FD_SETSIZE 1024 /* Max number of file descriptor bits in + fd_set, used when calling 'select' + Must be defined before including + "sys/select.h" and "sys/time.h" + */ +#endif + + /* to make command line shorter we'll define USE_PRAGMA_INTERFACE here */ #ifdef USE_PRAGMA_IMPLEMENTATION #define USE_PRAGMA_INTERFACE |