aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-07-11 06:15:42 +0800
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-07-11 06:15:42 +0800
commit247dd38da056556bc11ddadea20a4ef3d3272b98 (patch)
tree7b488deab0851d4be0a7f0a82218c1cedda36d70 /ftp
parent5c308752363fa3273ee9d42d259af4b3691f2105 (diff)
downloadfreebsd-ports-247dd38da056556bc11ddadea20a4ef3d3272b98.tar.gz
freebsd-ports-247dd38da056556bc11ddadea20a4ef3d3272b98.tar.zst
freebsd-ports-247dd38da056556bc11ddadea20a4ef3d3272b98.zip
Add patchfile fogoten in previous commit:
Update to version 1.1.1 PR: ports/100032 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes: svn path=/head/; revision=167410
Diffstat (limited to 'ftp')
-rw-r--r--ftp/yafc/files/patch-src__input.c66
1 files changed, 66 insertions, 0 deletions
diff --git a/ftp/yafc/files/patch-src__input.c b/ftp/yafc/files/patch-src__input.c
new file mode 100644
index 000000000000..d9b8ac7cb88e
--- /dev/null
+++ b/ftp/yafc/files/patch-src__input.c
@@ -0,0 +1,66 @@
+--- src/input.c.bak Thu Oct 6 04:31:25 2005
++++ src/input.c Sun Jul 9 12:42:12 2006
+@@ -76,7 +76,11 @@
+
+ # include <fcntl.h>
+ # include <sys/ioctl.h>
++#if 0
+ # include <termio.h>
++#else
++# include <termios.h>
++#endif
+
+ char *getpass_hook(const char *prompt)
+ {
+@@ -89,23 +93,39 @@
+ #else
+ int c, n = 0;
+ char tmp[1024];
++#if 0
+ struct termio tbuf, tbufsave;
++#else
++ struct termios tbuf, tbufsave;
++#endif
+ FILE *fd;
+
+ if((fd = fopen("/dev/tty", "rb")) == NULL) {
+ perror("fopen /dev/tty");
+ return NULL;
+ }
++#if 0
+ if (ioctl(fileno(fd), TCGETA, &tbuf) < 0) {
++#else
++ if (ioctl(fileno(fd), TIOCGETA, &tbuf) < 0) {
++#endif
+ perror("ioctl get");
+ fclose(fd);
+ return NULL;
+ }
+ tbufsave = tbuf;
++#if 0
+ tbuf.c_iflag &= ~(IUCLC | ISTRIP | IXON | IXOFF);
++#else
++ tbuf.c_iflag &= ~(ISTRIP | IXON | IXOFF);
++#endif
+ tbuf.c_lflag &= ~(ICANON | ISIG | ECHO);
+ tbuf.c_cc[4] = 1; /* MIN */
++#if 0
+ if (ioctl(fileno(fd), TCSETA, &tbuf) < 0) {
++#else
++ if (ioctl(fileno(fd), TIOCSETA, &tbuf) < 0) {
++#endif
+ perror("ioctl set");
+ fclose(fd);
+ return NULL;
+@@ -132,7 +152,11 @@
+ fflush(stderr);
+ }
+ tmp[n] = '\0';
++#if 0
+ if (ioctl(fileno(fd), TCSETA, &tbufsave) < 0) {
++#else
++ if (ioctl(fileno(fd), TIOCSETA, &tbufsave) < 0) {
++#endif
+ perror("ioctl restore");
+ fclose(fd);
+ return NULL;