summaryrefslogtreecommitdiffstats
path: root/system/ttyrec/ttyrec-1.0.8-glibc-2.30.patch
diff options
context:
space:
mode:
author Matteo Bernardini <ponce@slackbuilds.org>2020-08-18 20:00:02 +0200
committer Robby Workman <rworkman@slackbuilds.org>2021-04-18 00:02:36 -0500
commitb42166cb70cf5af174883c3462e49498f4fe13fe (patch)
tree0e7a129e9f5c5bdcbc8565be8b2fd108a4992bd7 /system/ttyrec/ttyrec-1.0.8-glibc-2.30.patch
parentf6191a5590f175bb5585b078a55e22f7bdf89189 (diff)
downloadslackbuilds-b42166cb70cf5af174883c3462e49498f4fe13fe.tar.gz
slackbuilds-b42166cb70cf5af174883c3462e49498f4fe13fe.tar.xz
system/ttyrec: Patch for the newer glibc and fix the CFLAGS.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/ttyrec/ttyrec-1.0.8-glibc-2.30.patch')
-rw-r--r--system/ttyrec/ttyrec-1.0.8-glibc-2.30.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/system/ttyrec/ttyrec-1.0.8-glibc-2.30.patch b/system/ttyrec/ttyrec-1.0.8-glibc-2.30.patch
new file mode 100644
index 0000000000..174fc7786e
--- /dev/null
+++ b/system/ttyrec/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';