termux-packages/packages/libmosquitto/src-loop.c.patch

13 lines
396 B
Diff
Raw Normal View History

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);