diff options
author | itetcu <itetcu@FreeBSD.org> | 2006-07-11 06:15:42 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2006-07-11 06:15:42 +0800 |
commit | a0b1e8e55aac1a45d189c5a1602c9f566102d70b (patch) | |
tree | 8b8fdbe677b1560faebd1977f022ad5d3ad558a1 /ftp/yafc | |
parent | 99c5227053a31e25bd2bd903fb36d7e2b7db2e00 (diff) | |
download | freebsd-ports-gnome-a0b1e8e55aac1a45d189c5a1602c9f566102d70b.tar.gz freebsd-ports-gnome-a0b1e8e55aac1a45d189c5a1602c9f566102d70b.tar.zst freebsd-ports-gnome-a0b1e8e55aac1a45d189c5a1602c9f566102d70b.zip |
Add patchfile fogoten in previous commit:
Update to version 1.1.1
PR: ports/100032
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'ftp/yafc')
-rw-r--r-- | ftp/yafc/files/patch-src__input.c | 66 |
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; |