summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2006-02-27 10:08:35 +0100
committermsvensson@neptunus.(none) <>2006-02-27 10:08:35 +0100
commit44a28553823b76d2f0d828aa021622c8547260de (patch)
tree0953147a10e2c3f512aacbad54ca5e0c15ca6633 /include
parent1b115976b62f9a2d4238340bcf9d096bea16e3b1 (diff)
downloadmariadb-git-44a28553823b76d2f0d828aa021622c8547260de.tar.gz
Bug#17716 Slave crash in net_clear on qnx
- Set FD_SETSIZE before including "sys/select.h"
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h9
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