From 0034ba44d088a0a0b0a4859999b0bee034cea1cd Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 16 Jul 2017 17:07:05 +0200 Subject: [PATCH] libmosquitto: Update from 1.4.11 to 1.4.14 --- packages/libmosquitto/build.sh | 4 ++-- packages/libmosquitto/src-loop.c.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 packages/libmosquitto/src-loop.c.patch diff --git a/packages/libmosquitto/build.sh b/packages/libmosquitto/build.sh index 88b9c9e21..417dccd7c 100644 --- a/packages/libmosquitto/build.sh +++ b/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=" diff --git a/packages/libmosquitto/src-loop.c.patch b/packages/libmosquitto/src-loop.c.patch new file mode 100644 index 000000000..4702b59b7 --- /dev/null +++ b/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);