inetutils: Add HAVE_DECL_GETPASS checks to ftp
[termux-packages] / packages / inetutils / ftp-getpass.patch
CommitLineData
795d376e
FF
1diff -u -r ../inetutils-1.9.4/ftp/cmds.c ./ftp/cmds.c
2--- ../inetutils-1.9.4/ftp/cmds.c 2015-06-09 03:41:47.000000000 -0400
3+++ ./ftp/cmds.c 2016-10-22 08:13:16.282265064 -0400
4@@ -1721,6 +1721,9 @@
5 void
6 user (int argc, char **argv)
7 {
8+# if !HAVE_DECL_GETPASS
9+ extern char *getpass ();
10+# endif
11 char acct[80];
12 int n, aflag = 0;
13
14@@ -2070,6 +2073,9 @@
15 void
16 account (int argc, char **argv)
17 {
18+# if !HAVE_DECL_GETPASS
19+ extern char *getpass ();
20+# endif
21 char acct[50], *ap;
22
23 if (argc > 1)
24diff -u -r ../inetutils-1.9.4/ftp/ftp.c ./ftp/ftp.c
25--- ../inetutils-1.9.4/ftp/ftp.c 2015-03-31 11:40:47.000000000 -0400
26+++ ./ftp/ftp.c 2016-10-22 08:13:37.005945253 -0400
27@@ -292,6 +292,9 @@
28 int
29 login (char *host)
30 {
31+# if !HAVE_DECL_GETPASS
32+ extern char *getpass ();
33+# endif
34 char tmp[80];
35 char *user, *pass, *acct;
36 int n, aflag = 0;