Browse Source

libmosquitto: Update from 1.4.11 to 1.4.14

android-5
Fredrik Fornwall 8 years ago
parent
commit
54d1876417
  1. 4
      packages/libmosquitto/build.sh
  2. 12
      packages/libmosquitto/src-loop.c.patch

4
packages/libmosquitto/build.sh

@ -1,8 +1,8 @@
TERMUX_PKG_HOMEPAGE=https://mosquitto.org/
TERMUX_PKG_DESCRIPTION="MQTT library"
TERMUX_PKG_VERSION=1.4.11
TERMUX_PKG_VERSION=1.4.14
TERMUX_PKG_SHA256=156b1fa731d12baad4b8b22f7b6a8af50ba881fc711b81e9919ec103cf2942d1
TERMUX_PKG_SRCURL=https://mosquitto.org/files/source/mosquitto-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=ca47533bbc1b7c5e15d6e5d96d3efc59677f2515b6692263c34b7c48f33280c5
TERMUX_PKG_DEPENDS="c-ares, openssl"
TERMUX_PKG_MAINTAINER="Nathaniel Wesley Filardo @nwf"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="

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

@ -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…
Cancel
Save