Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37595620
en ru br
ALT Linux repos
S:1.0.8-alt3

Group :: Terminals
RPM: ttyrec

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 50_openpty_ALT.patch
Download


diff -ur ttyrec-1.0.8.old/Makefile ttyrec-1.0.8/Makefile
--- ttyrec-1.0.8.old/Makefile	2011-09-27 13:03:06.829114294 +0000
+++ ttyrec-1.0.8/Makefile	2011-09-27 13:04:51.399020932 +0000
@@ -13,7 +13,7 @@
 all: $(TARGET)
 
 ttyrec: ttyrec.o io.o
-	$(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o
+	$(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o -lutil
 
 ttyplay: ttyplay.o io.o
 	$(CC) $(CFLAGS) -o ttyplay ttyplay.o io.o
diff -ur ttyrec-1.0.8.old/ttyrec.c ttyrec-1.0.8/ttyrec.c
--- ttyrec-1.0.8.old/ttyrec.c	2011-09-27 13:03:06.861113654 +0000
+++ ttyrec-1.0.8/ttyrec.c	2011-09-27 13:09:18.185680188 +0000
@@ -71,7 +71,7 @@
 #define _(FOO) FOO
 
 #ifdef HAVE_openpty
-#include <libutil.h>
+#include <pty.h>
 #endif
 
 #if defined(SVR4) && !defined(CDEL)
@@ -504,8 +504,8 @@
 	(void) ioctl(slave, TIOCSCTTY, 0);
 #else /* !SVR4 */
 #ifndef HAVE_openpty
-	line[strlen("/dev/")] = 't';
-	slave = open(line, O_RDWR);
+	// line[strlen("/dev/")] = 't';
+	// slave = open(line, O_RDWR);
 	if (slave < 0) {
 		perror(line);
 		fail();
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin