chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / ruby / pty.c.patch
1 diff -u -r ../ruby-2.4.0/ext/pty/pty.c ./ext/pty/pty.c
2 --- ../ruby-2.4.0/ext/pty/pty.c 2016-04-29 21:12:52.000000000 -0400
3 +++ ./ext/pty/pty.c     2017-01-13 07:15:02.848063672 -0500
4 @@ -164,7 +164,7 @@
5      char               errbuf[32];
6  
7      if (argc == 0) {
8 -       const char *shellname = "/bin/sh";
9 +       const char *shellname = "@TERMUX_PREFIX@/bin/sh";
10  
11         if ((p = getenv("SHELL")) != NULL) {
12             shellname = p;