Fredrik Fornwall
8 years ago
2 changed files with 14 additions and 2 deletions
@ -0,0 +1,12 @@ |
|||
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); |
Loading…
Reference in new issue