You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
396 B

diff -u -r ../mosquitto-1.4.14/src/loop.c ./src/loop.c
--- ../mosquitto-1.4.14/src/loop.c 2017-07-11 00:46:01.000000000 +0200
+++ ./src/loop.c 2017-07-16 17:02:46.714354543 +0200
@@ -126,7 +126,7 @@
#ifdef WIN32
pollfd_max = _getmaxstdio();
#else
- pollfd_max = getdtablesize();
+ pollfd_max = sysconf(_SC_OPEN_MAX);
#endif
pollfds = _mosquitto_malloc(sizeof(struct pollfd)*pollfd_max);