chiark / gitweb /
multitail: -Werror=implicit-function-declaration
authorFredrik Fornwall <fredrik@fornwall.net>
Fri, 7 Jul 2017 08:51:23 +0000 (10:51 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 7 Jul 2017 08:51:23 +0000 (10:51 +0200)
packages/multitail/build.sh
packages/multitail/my_pty.c.patch

index 75ee9992f83b3fd3da04a08c980d582b7243e8a7..bd911b0e5077787ecc80c15cb6f0f6b9bc5c29bd 100644 (file)
@@ -7,5 +7,6 @@ TERMUX_PKG_DEPENDS="ncurses, ncurses-ui-libs, libandroid-glob"
 TERMUX_PKG_BUILD_IN_SRC=yes
 
 termux_step_pre_configure () {
 TERMUX_PKG_BUILD_IN_SRC=yes
 
 termux_step_pre_configure () {
+       CFLAGS+=" -DNCURSES_WIDECHAR"
        LDFLAGS+=" -landroid-glob"
 }
        LDFLAGS+=" -landroid-glob"
 }
index 430c6d48c95bf5b9f6db6b22f28052e30c457638..1bb559a2772fcd34bb5bbfe8f70bbd51208f8966 100644 (file)
@@ -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
  #ifdef __OpenBSD__
  #include <util.h>
  #endif
@@ -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)
  #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)
  {
  
  int get_pty_and_fork(int *fd_master, int *fd_slave)
  {
@@ -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)
        {
  
        if (openpty(fd_master, fd_slave, NULL, NULL, NULL) == -1)
        {
-@@ -88,7 +88,7 @@
+@@ -88,7 +89,7 @@
  
        return fork();
  
  
        return fork();
  
@@ -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
  
        /*
         * 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);
  
                *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);