Also fix -Werror=implicit-function-declaration.
TERMUX_PKG_HOMEPAGE=http://www.ivarch.com/programs/pv.shtml
TERMUX_PKG_DESCRIPTION="Terminal-based tool for monitoring the progress of data through a pipeline"
TERMUX_PKG_HOMEPAGE=http://www.ivarch.com/programs/pv.shtml
TERMUX_PKG_DESCRIPTION="Terminal-based tool for monitoring the progress of data through a pipeline"
-TERMUX_PKG_VERSION=1.6.0
+TERMUX_PKG_VERSION=1.6.6
TERMUX_PKG_SRCURL=http://www.ivarch.com/programs/sources/pv-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SRCURL=http://www.ivarch.com/programs/sources/pv-${TERMUX_PKG_VERSION}.tar.bz2
-TERMUX_PKG_SHA256=0ece824e0da27b384d11d1de371f20cafac465e038041adab57fcf4b5036ef8d
+TERMUX_PKG_SHA256=608ef935f7a377e1439c181c4fc188d247da10d51a19ef79bcdee5043b0973f1
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-ipc"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-ipc"
--- /dev/null
+diff -u -r ../pv-1.6.0/src/pv/cursor.c ./src/pv/cursor.c
+--- ../pv-1.6.0/src/pv/cursor.c 2015-03-15 00:37:18.000000000 +0000
++++ ./src/pv/cursor.c 2017-07-07 00:05:58.507914275 +0000
+@@ -21,6 +21,7 @@
+ #include <unistd.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#include <libgen.h> /* For basename(). */
+
+ #ifdef HAVE_IPC
+ #include <sys/ipc.h>