Merge pull request #239 from its-pointless/moshfront
[termux-packages] / packages / mosh / shittypty.h.patch
CommitLineData
7901d653 1--- ../mosh/src/frontend/shittypty.h 2016-04-29 00:42:50.787977659 +1000
2+++ ./src/frontend/shittypty.h 2016-04-29 00:40:48.256667557 +1000
3@@ -0,0 +1,35 @@
4+/*
5+ Mosh: the mobile shell
6+ Copyright 2012 Keith Winstein
7+
8+ This program is free software: you can redistribute it and/or modify
9+ it under the terms of the GNU General Public License as published by
10+ the Free Software Foundation, either version 3 of the License, or
11+ (at your option) any later version.
12+
13+ This program is distributed in the hope that it will be useful,
14+ but WITHOUT ANY WARRANTY; without even the implied warranty of
15+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+ GNU General Public License for more details.
17+
18+ You should have received a copy of the GNU General Public License
19+ along with this program. If not, see <http://www.gnu.org/licenses/>.
20+*/
21+
22+#ifndef PTY_HPP
23+#define PTY_HPP
24+
25+#include "config.h"
26+
27+#ifndef HAVE_FORKPTY
28+#define forkpty my_forkpty
29+int my_forkpty (int *amaster, char *name, const struct termios *termp, const struct winsize *winp);
30+#endif
31+
32+#ifndef HAVE_OPENPTY
33+#define openpty my_openpty
34+int my_openpty (int *amaster, int *aslave, char *name, const struct termios *termp,
35+ const struct winsize *winp);
36+#endif
37+
38+#endif