Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 77294acd31d83f8a8bb2bb7f92a738e3 > files > 2

ttyrec-1.0.8-10.mga9.src.rpm

Index: ttyrec-1.0.8/ttyrec.c
===================================================================
--- ttyrec-1.0.8/ttyrec.c
+++ ttyrec-1.0.8/ttyrec.c	2020-03-21 20:58:45.493989682 +0100
@@ -61,7 +61,9 @@
 
 #if defined(SVR4)
 #include <fcntl.h>
+#ifndef linux
 #include <stropts.h>
+#endif
 #endif /* SVR4 */
 
 #include <sys/time.h>
@@ -234,7 +236,7 @@
 void
 finish()
 {
-#if defined(SVR4)
+#if defined(SVR4) || defined(linux)
 	int status;
 #else /* !SVR4 */
 	union wait status;
@@ -533,6 +535,7 @@
 		if (!force) perror("open(fd, O_RDWR)");
 		fail();
 	}
+#ifndef linux
 	if (isastream(slave)) {
 		if (ioctl(slave, I_PUSH, "ptem") < 0) {
 			if (!force) perror("ioctl(fd, I_PUSH, ptem)");
@@ -549,6 +552,7 @@
 		}
 #endif
 	}
+#endif
 	(void) tcsetattr(slave, TCSAFLUSH, &tt);
 	(void) ioctl(slave, TIOCSWINSZ, (char *)&win);
 	(void) ioctl(slave, TIOCSCTTY, 0);