Skip to content

Commit

Permalink
multitail: -Werror=implicit-function-declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Jul 7, 2017
1 parent 1d20099 commit 2c23132
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/multitail/build.sh
Expand Up @@ -7,5 +7,6 @@ TERMUX_PKG_DEPENDS="ncurses, ncurses-ui-libs, libandroid-glob"
TERMUX_PKG_BUILD_IN_SRC=yes

termux_step_pre_configure () {
CFLAGS+=" -DNCURSES_WIDECHAR"
LDFLAGS+=" -landroid-glob"
}
22 changes: 15 additions & 7 deletions packages/multitail/my_pty.c.patch
@@ -1,7 +1,15 @@
diff -u -r ../multitail-6.2.1/my_pty.c ./my_pty.c
--- ../multitail-6.2.1/my_pty.c 2014-02-16 15:06:54.000000000 +0100
+++ ./my_pty.c 2014-06-30 16:54:44.000000000 +0200
@@ -29,7 +29,7 @@
diff -u -r ../multitail-6.4.2/my_pty.c ./my_pty.c
--- ../multitail-6.4.2/my_pty.c 2014-05-01 12:54:06.000000000 +0000
+++ ./my_pty.c 2017-07-07 08:47:03.030247339 +0000
@@ -22,6 +22,7 @@
#include <sys/ioctl.h>

#include "mt.h"
+#include "utils.h" /* For myopen(). */

#ifdef __APPLE__
#include <util.h>
@@ -29,7 +30,7 @@
#ifdef __OpenBSD__
#include <util.h>
#endif
Expand All @@ -10,7 +18,7 @@ diff -u -r ../multitail-6.2.1/my_pty.c ./my_pty.c
#include <pty.h>
#endif
#if defined(__FreeBSD__) || defined(__minix)
@@ -78,7 +78,7 @@
@@ -78,7 +79,7 @@

int get_pty_and_fork(int *fd_master, int *fd_slave)
{
Expand All @@ -19,7 +27,7 @@ diff -u -r ../multitail-6.2.1/my_pty.c ./my_pty.c

if (openpty(fd_master, fd_slave, NULL, NULL, NULL) == -1)
{
@@ -88,7 +88,7 @@
@@ -88,7 +89,7 @@

return fork();

Expand All @@ -28,7 +36,7 @@ diff -u -r ../multitail-6.2.1/my_pty.c ./my_pty.c

/*
* This code is used e.g. on Solaris 2.x. (Note that Solaris 2.3
@@ -123,7 +123,7 @@
@@ -123,7 +124,7 @@
*fd_slave = myopen(pts, O_RDWR | O_NOCTTY);
if (*fd_slave < 0) error_exit(TRUE, FALSE, "Problem opening slave-side of pseudo tty (file '%s').\n", pts);

Expand Down

0 comments on commit 2c23132

Please sign in to comment.