openbsd-ports/lang/expect/patches/patch-exp_main_tk_c
sebastia 507103ec99 Update expect to 5.44.1.15
switch from tcl/tk 8.4 to 8.5
take maintainership

after fixing the WANTLIB finally OK, landry@, sthen@, jasper@
2010-09-24 14:16:50 +00:00

52 lines
1.4 KiB
Plaintext

$OpenBSD: patch-exp_main_tk_c,v 1.1 2010/09/24 14:16:50 sebastia Exp $
Get rid of implicit declaration of function warnings
--- exp_main_tk.c.orig Thu Mar 11 19:06:30 2010
+++ exp_main_tk.c Tue Sep 14 08:59:57 2010
@@ -36,6 +36,7 @@ static char sccsid[] = "@(#) tkAppInit.c 1.19 95/12/23
#undef USE_TCL_STUBS
#include <ctype.h>
+#include <string.h>
#include "tk.h"
@@ -59,6 +60,27 @@ EXTERN int Tktest_Init _ANSI_ARGS_((Tcl_Interp *inter
/*
*----------------------------------------------------------------------
*
+ */
+#ifndef TkCreateFrame_TCL_DECLARED
+#define TkCreateFrame_TCL_DECLARED
+/* 13 */
+EXTERN int TkCreateFrame (ClientData clientData,
+ Tcl_Interp * interp, int argc, char ** argv,
+ int toplevel, char * appName);
+#endif
+#ifndef TkpInit_TCL_DECLARED
+#define TkpInit_TCL_DECLARED
+/* 62 */
+EXTERN int TkpInit (Tcl_Interp * interp);
+#endif
+EXTERN void expDiagToStderrSet _ANSI_ARGS_((int));
+
+
+int Tk_Init2(Tcl_Interp * interp);
+
+/*
+ *----------------------------------------------------------------------
+ *
* main --
*
* This is the main program for the application.
@@ -387,7 +409,7 @@ Tk_Init2(interp)
* Invoke platform-specific initialization.
*/
- code = TkpInit(interp, 0);
+ code = TkpInit(interp);
done:
if (argv != NULL) {