2011-10-07 16:20:42 +02:00
|
|
|
Index: exp_clib.c
|
|
|
|
===================================================================
|
|
|
|
--- exp_clib.c.orig
|
2008-11-03 12:04:57 +01:00
|
|
|
+++ exp_clib.c
|
2011-10-07 16:20:42 +02:00
|
|
|
@@ -9,6 +9,7 @@ would appreciate credit if this program
|
2008-03-21 01:34:20 +01:00
|
|
|
|
2008-11-03 12:04:57 +01:00
|
|
|
#include "expect_cf.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
+#include <unistd.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#ifdef HAVE_INTTYPES_H
|
|
|
|
# include <inttypes.h>
|
2011-10-07 16:20:42 +02:00
|
|
|
Index: exp_trap.c
|
|
|
|
===================================================================
|
|
|
|
--- exp_trap.c.orig
|
2008-11-03 12:04:57 +01:00
|
|
|
+++ exp_trap.c
|
2011-10-07 16:20:42 +02:00
|
|
|
@@ -13,6 +13,7 @@ would appreciate credit if this program
|
2008-11-03 12:04:57 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
+#include <string.h>
|
2008-03-21 01:34:20 +01:00
|
|
|
|
2008-11-03 12:04:57 +01:00
|
|
|
#ifdef HAVE_SYS_WAIT_H
|
|
|
|
#include <sys/wait.h>
|
2011-10-07 16:20:42 +02:00
|
|
|
Index: exp_win.c
|
|
|
|
===================================================================
|
|
|
|
--- exp_win.c.orig
|
2008-11-03 12:04:57 +01:00
|
|
|
+++ exp_win.c
|
2011-10-07 16:20:42 +02:00
|
|
|
@@ -78,7 +78,7 @@ typedef struct {
|
2008-11-03 12:04:57 +01:00
|
|
|
static exp_winsize winsize = {0, 0};
|
|
|
|
static exp_winsize win2size = {0, 0};
|
2008-03-21 01:34:20 +01:00
|
|
|
|
2008-11-03 12:04:57 +01:00
|
|
|
-int exp_window_size_set(fd)
|
|
|
|
+void exp_window_size_set(fd)
|
|
|
|
int fd;
|
|
|
|
{
|
|
|
|
#ifdef TIOCSWINSZ
|
2011-10-07 16:20:42 +02:00
|
|
|
@@ -89,7 +89,7 @@ int fd;
|
2008-11-03 12:04:57 +01:00
|
|
|
#endif
|
|
|
|
}
|
2008-03-21 01:34:20 +01:00
|
|
|
|
2008-11-03 12:04:57 +01:00
|
|
|
-int exp_window_size_get(fd)
|
|
|
|
+void exp_window_size_get(fd)
|
|
|
|
int fd;
|
|
|
|
{
|
|
|
|
#ifdef TIOCGWINSZ
|
2011-10-07 16:20:42 +02:00
|
|
|
@@ -142,7 +142,7 @@ exp_win_columns_get()
|
2008-11-03 12:04:57 +01:00
|
|
|
* separate copy of everything above - used for handling user stty requests
|
|
|
|
*/
|
2008-03-21 01:34:20 +01:00
|
|
|
|
2008-11-03 12:04:57 +01:00
|
|
|
-int exp_win2_size_set(fd)
|
|
|
|
+void exp_win2_size_set(fd)
|
|
|
|
int fd;
|
|
|
|
{
|
|
|
|
#ifdef TIOCSWINSZ
|
2011-10-07 16:20:42 +02:00
|
|
|
@@ -153,7 +153,7 @@ int fd;
|
2008-11-03 12:04:57 +01:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
-int exp_win2_size_get(fd)
|
|
|
|
+void exp_win2_size_get(fd)
|
|
|
|
int fd;
|
|
|
|
{
|
|
|
|
#ifdef TIOCGWINSZ
|
2011-10-07 16:20:42 +02:00
|
|
|
Index: exp_win.h
|
|
|
|
===================================================================
|
|
|
|
--- exp_win.h.orig
|
2008-11-03 12:04:57 +01:00
|
|
|
+++ exp_win.h
|
2011-10-07 16:20:42 +02:00
|
|
|
@@ -8,8 +8,8 @@ would appreciate credit if you use this
|
2008-11-03 12:04:57 +01:00
|
|
|
|
|
|
|
#include <tcl.h> /* For _ANSI_ARGS_ */
|
|
|
|
|
|
|
|
-int exp_window_size_set();
|
|
|
|
-int exp_window_size_get();
|
|
|
|
+void exp_window_size_set();
|
|
|
|
+void exp_window_size_get();
|
2008-03-21 01:34:20 +01:00
|
|
|
|
2008-11-03 12:04:57 +01:00
|
|
|
void exp_win_rows_set _ANSI_ARGS_ ((char* rows));
|
|
|
|
char* exp_win_rows_get _ANSI_ARGS_ ((void));
|
2011-10-07 16:20:42 +02:00
|
|
|
Index: pty_termios.c
|
|
|
|
===================================================================
|
|
|
|
--- pty_termios.c.orig
|
2008-11-03 12:04:57 +01:00
|
|
|
+++ pty_termios.c
|
2011-10-07 16:20:42 +02:00
|
|
|
@@ -9,6 +9,7 @@ would appreciate credit if you use this
|
2008-03-21 01:34:20 +01:00
|
|
|
|
2008-11-03 12:04:57 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <signal.h>
|
|
|
|
+#include <string.h>
|
2008-03-21 01:34:20 +01:00
|
|
|
|
2008-11-03 12:04:57 +01:00
|
|
|
#if defined(SIGCLD) && !defined(SIGCHLD)
|
|
|
|
#define SIGCHLD SIGCLD
|