From: Fredrik Fornwall Date: Sun, 2 Jul 2017 09:18:52 +0000 (+0200) Subject: tmux: Include for getprogname() X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/484323db9084efb2d8cda32019391dbbb81888fc?hp=6b98bcec65460beeda3f9e685476e7fc79115a75 tmux: Include for getprogname() After switching to unified headers, was not included indirectly in compat/setproctitle.c. This caused it to be implicitly declared to return int and caused a segfault. --- diff --git a/packages/tmux/compat-setproctitle.c.patch b/packages/tmux/compat-setproctitle.c.patch new file mode 100644 index 00000000..3b7e400c --- /dev/null +++ b/packages/tmux/compat-setproctitle.c.patch @@ -0,0 +1,13 @@ +diff -u -r ../tmux-2.5/compat/setproctitle.c ./compat/setproctitle.c +--- ../tmux-2.5/compat/setproctitle.c 2017-04-28 15:43:11.000000000 +0200 ++++ ./compat/setproctitle.c 2017-07-02 11:16:40.393826133 +0200 +@@ -18,6 +18,9 @@ + + #include + #include ++#ifdef __ANDROID__ ++# include /* For getprogname() */ ++#endif + + #include "compat.h" +