openbsd-ports/lang/expect/patches/patch-exp_clib_c
sebastia bfedf44316 Update expect to 5.45. The dependency to Tk is gone. When needed to
steer Tk GUI apps, load the module in wish: package require Expect

Updated version also builds on VAX, and makes the loading of the
Expect module work on all other archs.

tests, comments feedback and OK sthen@, giovanni@
2013-05-15 09:46:28 +00:00

25 lines
711 B
Plaintext

$OpenBSD: patch-exp_clib_c,v 1.2 2013/05/15 09:46:28 sebastia Exp $
Get rid of implicit declaration of function warnings
--- exp_clib.c.orig Wed Sep 1 00:20:27 2010
+++ exp_clib.c Sun Apr 28 16:41:29 2013
@@ -14,7 +14,9 @@ would appreciate credit if this program or parts of it
# include <inttypes.h>
#endif
#include <sys/types.h>
+#include <sys/wait.h>
#include <sys/ioctl.h>
+#include <unistd.h>
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
@@ -117,6 +119,7 @@ extern unsigned long strtoul _ANSI_ARGS_((CONST char *
#include <tcl.h>
#include "expect.h"
#define TclRegError exp_TclRegError
+extern void exp_init_tty (void);
/*
* regexp code - from tcl8.0.4/generic/regexp.c