diff options
Diffstat (limited to 'app-misc/ttyrec')
-rw-r--r-- | app-misc/ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch | 30 | ||||
-rw-r--r-- | app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild | 5 |
2 files changed, 34 insertions, 1 deletions
diff --git a/app-misc/ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch b/app-misc/ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch new file mode 100644 index 000000000000..174fc7786e19 --- /dev/null +++ b/app-misc/ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch @@ -0,0 +1,30 @@ +diff --git a/ttyrec.c b/ttyrec.c +index 3392f70..86a59ee 100644 +--- a/ttyrec.c ++++ b/ttyrec.c +@@ -57,7 +57,9 @@ + + #if defined(SVR4) + #include <fcntl.h> ++#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__linux__)) + #include <stropts.h> ++#endif + #endif /* SVR4 */ + + #include <sys/time.h> +@@ -449,6 +451,7 @@ getslave() + perror("open(fd, O_RDWR)"); + fail(); + } ++#ifndef __linux__ + if (isastream(slave)) { + if (ioctl(slave, I_PUSH, "ptem") < 0) { + perror("ioctl(fd, I_PUSH, ptem)"); +@@ -466,6 +469,7 @@ getslave() + #endif + (void) ioctl(0, TIOCGWINSZ, (char *)&win); + } ++#endif + #else /* !SVR4 */ + #ifndef HAVE_openpty + line[strlen("/dev/")] = 't'; diff --git a/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild b/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild index df5351688d2e..e3f42c0d0d33 100644 --- a/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild +++ b/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild @@ -12,7 +12,10 @@ SRC_URI="http://0xcc.net/ttyrec/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha amd64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" -PATCHES=( "${FILESDIR}/${P}-flags.patch" ) +PATCHES=( + "${FILESDIR}/${P}-flags.patch" + "${FILESDIR}/${P}-glibc-2.30.patch" +) src_compile() { # Bug 106530 |